[Sumover-dev] [svn commit] r4184 - in vic/branches/cc: . net rtp
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Mon Jun 23 04:30:56 BST 2008
Author: soohyunc
Date: Mon Jun 23 04:30:52 2008
New Revision: 4184
Modified:
vic/branches/cc/codec/p64/mkhuff.cpp
vic/branches/cc/codec/p64/p64-huff.h
vic/branches/cc/main.cpp
vic/branches/cc/module.cpp
vic/branches/cc/module.h
vic/branches/cc/net/mbus_engine.h
vic/branches/cc/rtp/session.cpp
vic/branches/cc/rtp/session.h
Log:
fix warning message:
warning: deprecated conversion from string constant to ‘char*’
Modified: vic/branches/cc/codec/p64/mkhuff.cpp
==============================================================================
--- vic/branches/cc/codec/p64/mkhuff.cpp (original)
+++ vic/branches/cc/codec/p64/mkhuff.cpp Mon Jun 23 04:30:52 2008
@@ -210,7 +210,7 @@
}
struct huff {
- char* name;
+ const char* name;
huffcode* codes;
};
struct huff hc[] = {
Modified: vic/branches/cc/codec/p64/p64-huff.h
==============================================================================
--- vic/branches/cc/codec/p64/p64-huff.h (original)
+++ vic/branches/cc/codec/p64/p64-huff.h Mon Jun 23 04:30:52 2008
@@ -99,7 +99,7 @@
#else
struct huffcode {
int val;
- char* str;
+ const char* str;
};
static struct huffcode hc_mtype[] = {
Modified: vic/branches/cc/main.cpp
==============================================================================
--- vic/branches/cc/main.cpp (original)
+++ vic/branches/cc/main.cpp Mon Jun 23 04:30:52 2008
@@ -332,7 +332,7 @@
extern "C" int opterr;
#endif
- char*
+const char*
parse_assignment(char* cp)
{
cp = strchr(cp, '=');
Modified: vic/branches/cc/module.cpp
==============================================================================
--- vic/branches/cc/module.cpp (original)
+++ vic/branches/cc/module.cpp Mon Jun 23 04:30:52 2008
@@ -37,7 +37,7 @@
#endif
#include "module.h"
-char* Module::fttoa(int ft)
+const char* Module::fttoa(int ft)
{
switch (ft) {
case FT_YUV_411: return ("411");
Modified: vic/branches/cc/module.h
==============================================================================
--- vic/branches/cc/module.h (original)
+++ vic/branches/cc/module.h Mon Jun 23 04:30:52 2008
@@ -125,7 +125,7 @@
protected:
Module(int ft);
static int atoft(const char* s);
- static char* fttoa(int ft);
+ static const char* fttoa(int ft);
inline void size(int w, int h) {
width_ = w;
height_ = h;
Modified: vic/branches/cc/net/mbus_engine.h
==============================================================================
--- vic/branches/cc/net/mbus_engine.h (original)
+++ vic/branches/cc/net/mbus_engine.h Mon Jun 23 04:30:52 2008
@@ -52,7 +52,7 @@
} cname_hash_table[SOURCE_HASH];
struct mbus_cmnd_to_func {
- char *mbus_cmnd;
+ const char *mbus_cmnd;
void (MBusEngine::*mbus_func)(char *srce, char *args, MBusHandler *mb);
} *mbus_cmnd_to_func_table_;
Modified: vic/branches/cc/rtp/session.cpp
==============================================================================
--- vic/branches/cc/rtp/session.cpp (original)
+++ vic/branches/cc/rtp/session.cpp Mon Jun 23 04:30:52 2008
@@ -528,7 +528,8 @@
return (len);
}
-int SessionManager::build_app(rtcphdr* rh, Source& ls, char *name, void *data, int datalen)
+int SessionManager::build_app(rtcphdr* rh, Source& ls, const char *name,
+ void *data, int datalen)
{
int flags = RTP_VERSION << 14 | 1 << 8 | RTCP_PT_APP;
rh->rh_flags = htons(flags);
Modified: vic/branches/cc/rtp/session.h
==============================================================================
--- vic/branches/cc/rtp/session.h (original)
+++ vic/branches/cc/rtp/session.h Mon Jun 23 04:30:52 2008
@@ -130,7 +130,8 @@
int build_bye(rtcphdr* rh, Source& local);
u_char* build_sdes_item(u_char* p, int code, Source&);
int build_sdes(rtcphdr* rh, Source& s);
- int build_app(rtcphdr* rh, Source& ls, char *name, void *data, int datalen);
+ int build_app(rtcphdr* rh, Source& ls, const char *name,
+ void *data, int datalen);
void parse_sr(rtcphdr* rh, int flags, u_char* ep,
Source* ps, Address & addr, int layer);
More information about the Sumover-dev
mailing list