From c28042a230dd98bd7a114096ff109d1cf7a11096 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 11 Mar 2010 00:36:45 +0000 Subject: Squelch some compiler warnings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32165 f5534014-38df-0310-8fa8-9805f1628bb7 --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index a86b48afd3..cbf010a19b 100644 --- a/util.c +++ b/util.c @@ -66,7 +66,7 @@ get_args_as_string(int argc, char **argv, int optindex) /* * Allocate the buffer for the string. */ - argstring = g_malloc(len); + argstring = (char *)g_malloc(len); /* * Now construct the string. @@ -255,7 +255,7 @@ const gchar *get_conn_cfilter(void) { if (hostlen == 0) return ""; /* no hostname supplied */ - phostname = g_malloc(hostlen + 1); + phostname = (char *)g_malloc(hostlen + 1); memcpy(phostname, lastp, hostlen); phostname[hostlen] = '\0'; -- cgit v1.2.3