From 8fd3ee05600dd7d0e6434e7eb824932c52000ce3 Mon Sep 17 00:00:00 2001 From: Stephen Fisher Date: Wed, 28 Mar 2007 21:55:11 +0000 Subject: Remove almost all of the casts I committed recently and in place of them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253 --- capture_sync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'capture_sync.c') diff --git a/capture_sync.c b/capture_sync.c index b6fba3e1a7..4b67d0cd58 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -562,7 +562,7 @@ pipe_read_block(int pipe, char *indicator, int len, char *msg) { /* read header (indicator and 3-byte length) */ - newly = pipe_read_bytes(pipe, (char*)header, 4); + newly = pipe_read_bytes(pipe, header, 4); if(newly != 4) { g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG, "read %d failed to read header: %u", pipe, newly); @@ -675,10 +675,10 @@ sync_pipe_input_cb(gint source, gpointer user_data) break; case SP_ERROR_MSG: /* convert primary message */ - pipe_convert_header((guchar*)buffer, 4, &indicator, &primary_len); + pipe_convert_header(buffer, 4, &indicator, &primary_len); primary_msg = buffer+4; /* convert secondary message */ - pipe_convert_header((guchar*)primary_msg + primary_len, 4, &indicator, &secondary_len); + pipe_convert_header(primary_msg + primary_len, 4, &indicator, &secondary_len); secondary_msg = primary_msg + primary_len + 4; /* message output */ capture_input_error_message(capture_opts, primary_msg, secondary_msg); -- cgit v1.2.3