diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-02-08 09:00:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-02-08 09:00:03 +0000 |
commit | 1df459c41503e887f698fbd3101f95fb450ef1e6 (patch) | |
tree | 3e980258199fc0b4090b84da57173c91ff98e2d9 /epan/diam_dict.l | |
parent | 2cbfc5db9815f71fc5208477a9bc23c2756e3dee (diff) |
Constify the return value of append_to_buffer(), to squelch some
warnings.
svn path=/trunk/; revision=47559
Diffstat (limited to 'epan/diam_dict.l')
-rw-r--r-- | epan/diam_dict.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/diam_dict.l b/epan/diam_dict.l index b9006fb890..1792db91e1 100644 --- a/epan/diam_dict.l +++ b/epan/diam_dict.l @@ -103,7 +103,7 @@ static char** attr_str; static unsigned* attr_uint; static void ddict_debug(const char* fmt, ...); -static void append_to_buffer(char* txt, int len); +static void append_to_buffer(const char* txt, int len); static FILE* ddict_open(const char*, const char*); %} @@ -550,7 +550,7 @@ void ddict_unused(void) { yy_top_state(); } -static void append_to_buffer(char* txt, int len) { +static void append_to_buffer(const char* txt, int len) { if (strbuf == NULL) { read_ptr = write_ptr = strbuf = g_malloc(size_strbuf); |