summaryrefslogtreecommitdiff
path: root/capture_sync.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-03-28 21:55:11 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-03-28 21:55:11 +0000
commit8fd3ee05600dd7d0e6434e7eb824932c52000ce3 (patch)
treedc1df6288600e883ed53ac7e43a38a2d03abb9f3 /capture_sync.c
parent32780e71e8ce8c8fd1898cbcb62f6bc8a59341f3 (diff)
downloadwireshark-8fd3ee05600dd7d0e6434e7eb824932c52000ce3.tar.gz
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
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c6
1 files changed, 3 insertions, 3 deletions
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);