use explicit cast to squelch compiler warning
authorMartin Kaiser <wireshark@kaiser.cx>
Thu, 1 Aug 2013 21:06:34 +0000 (21:06 -0000)
committerMartin Kaiser <wireshark@kaiser.cx>
Thu, 1 Aug 2013 21:06:34 +0000 (21:06 -0000)
svn path=/trunk/; revision=51093

file.c

diff --git a/file.c b/file.c
index a487ba6a1e259ae8be66c976c4dea2ca484a92e9..b1fd0f75855a99e02be98be7a096bff8fcc222ac 100644 (file)
--- a/file.c
+++ b/file.c
@@ -3940,7 +3940,7 @@ static const char *
 cf_get_user_packet_comment(capture_file *cf, const frame_data *fd)
 {
   if (cf->frames_user_comments)
-     return g_tree_lookup(cf->frames_user_comments, fd);
+     return (const char *)g_tree_lookup(cf->frames_user_comments, fd);
 
   /* g_warning? */
   return NULL;