From 5066cf86901f8849deb1a79dbe14fec675bb99da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sun, 14 Feb 2016 05:09:56 +0000 Subject: Fix format string warnings [-Wformat=] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I266c7d422f6ade965b42a4e2e8dc01966f8eb5f8 Reviewed-on: https://code.wireshark.org/review/13932 Reviewed-by: João Valverde --- epan/diam_dict.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/diam_dict.l') diff --git a/epan/diam_dict.l b/epan/diam_dict.l index 9dccba9b97..e97ca8d821 100644 --- a/epan/diam_dict.l +++ b/epan/diam_dict.l @@ -286,7 +286,7 @@ description_attr description=\042 for (e = ents.next; e; e = e->next) { if (strcmp(e->name,yytext) == 0) { yyin = ddict_open(sys_dir,e->file); - D(("entity: %s filename: %s yyin: %p\n",e->name,e->file,yyin)); + D(("entity: %s filename: %s yyin: %p\n",e->name,e->file,(void*)yyin)); if (!yyin) { if (errno) fprintf(stderr, "Could not open file: '%s', error: %s\n", e->file, g_strerror(errno) ); @@ -313,7 +313,7 @@ description_attr description=\042 if (!yyin) yyterminate(); fclose(yyin); - D(("closing: %p %i\n",yyin,include_stack_ptr)); + D(("closing: %p %i\n",(void*)yyin,include_stack_ptr)); if ( --include_stack_ptr < 0 ) { D(("DONE READING\n")); @@ -640,7 +640,7 @@ ddict_open(const char* system_directory, const char* filename) fh = ws_fopen(fname,"r"); - D(("fname: %s fh: %p\n",fname,fh)); + D(("fname: %s fh: %p\n",fname,(void*)fh)); g_free(fname); -- cgit v1.2.1