aboutsummaryrefslogtreecommitdiffstats
path: root/epan/uat.h
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2008-08-05 20:38:22 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2008-08-05 20:38:22 +0000
commitc1736aec4efbf1f5576faeb0de47f2565dab31aa (patch)
tree50a5007050612411bde03d1cbd7c270b268b56a0 /epan/uat.h
parent45b2e37a270234758b4a8c6fad6b58cd62977290 (diff)
(Temporary?) fix to get the Windows buildbot going again: remove constness from a couple of variables.
svn path=/trunk/; revision=25935
Diffstat (limited to 'epan/uat.h')
-rw-r--r--epan/uat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/uat.h b/epan/uat.h
index deaa8b879e..4eacdd15b1 100644
--- a/epan/uat.h
+++ b/epan/uat.h
@@ -345,7 +345,7 @@ static void basename ## _ ## field_name ## _tostr_cb(void* rec, const char** out
*/
#define UAT_LSTRING_CB_DEF(basename,field_name,rec_t,ptr_element,len_element) \
static void basename ## _ ## field_name ## _set_cb(void* rec, const char* buf, unsigned len, void* u1 _U_, void* u2 _U_) {\
- const char* new_val = uat_unesc(buf,len,&(((rec_t*)rec)->len_element)); \
+ char* new_val = uat_unesc(buf,len,&(((rec_t*)rec)->len_element)); \
if ((((rec_t*)rec)->ptr_element)) g_free((((rec_t*)rec)->ptr_element)); \
(((rec_t*)rec)->ptr_element) = new_val; }\
static void basename ## _ ## field_name ## _tostr_cb(void* rec, const char** out_ptr, unsigned* out_len, void* u1 _U_, void* u2 _U_) {\
@@ -367,7 +367,7 @@ static void basename ## _ ## field_name ## _tostr_cb(void* rec, const char** out
*/
#define UAT_BUFFER_CB_DEF(basename,field_name,rec_t,ptr_element,len_element) \
static void basename ## _ ## field_name ## _set_cb(void* rec, const char* buf, unsigned len, void* u1 _U_, void* u2 _U_) {\
- const char* new_buf = len ? g_memdup(buf,len) : NULL; \
+ char* new_buf = len ? g_memdup(buf,len) : NULL; \
if ((((rec_t*)rec)->ptr_element) ) g_free((((rec_t*)rec)->ptr_element)); \
(((rec_t*)rec)->ptr_element) = new_buf; \
(((rec_t*)rec)->len_element) = len; } \