Constify the return value of append_to_buffer(), to squelch some

warnings.

svn path=/trunk/; revision=47559
This commit is contained in:
Guy Harris 2013-02-08 09:00:03 +00:00
parent 2cbfc5db98
commit 1df459c415
1 changed files with 2 additions and 2 deletions

View File

@ -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);