diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-03-11 00:36:45 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-03-11 00:36:45 +0000 |
commit | c28042a230dd98bd7a114096ff109d1cf7a11096 (patch) | |
tree | 6f3860ac809ee6f76b42354399b91fa42cfa8ecc /util.c | |
parent | e4af7845842f4768e5d8c10e126295d9b0c1e62d (diff) |
Squelch some compiler warnings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32165 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'; |