aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-03-11 00:36:45 +0000
committerGuy Harris <guy@alum.mit.edu>2010-03-11 00:36:45 +0000
commite1b68812865ac511f095e4a0f58bf52cbb36d150 (patch)
tree6f3860ac809ee6f76b42354399b91fa42cfa8ecc /util.c
parent054938dbe347a3926216cf5f8c8112e96de19f46 (diff)
Squelch some compiler warnings.
svn path=/trunk/; revision=32165
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
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';