aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-05-24 14:21:06 -0700
committerGuy Harris <guy@alum.mit.edu>2014-05-24 21:21:33 +0000
commitd5b173009c6aa4442752976374bf9f1a1ec79ca2 (patch)
tree6eb743bfce6773252c0c61f35233c1fdff500048 /wiretap
parent1b6cc6320ee8d07293b3741738ee601bc86ba068 (diff)
Fix a compiler warning.
Change-Id: I5b4b518982dc6033842b1e791e67d2faddfb5487 Reviewed-on: https://code.wireshark.org/review/1777 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/pcapng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/pcapng.c b/wiretap/pcapng.c
index 5f5dbc322f..daf0ecc0cc 100644
--- a/wiretap/pcapng.c
+++ b/wiretap/pcapng.c
@@ -414,7 +414,7 @@ register_pcapng_block_type_handler(guint block_type, block_reader read,
g_direct_equal,
NULL, g_free);
}
- handler = g_malloc(sizeof *handler);
+ handler = (block_handler *)g_malloc(sizeof *handler);
handler->read = read;
handler->write = write;
(void)g_hash_table_insert(block_handlers, GUINT_TO_POINTER(block_type),