diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2007-03-23 22:49:23 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2007-03-23 22:49:23 +0000 |
commit | 2896811274e430759305c7f25889cb0214213409 (patch) | |
tree | 30e2ec739ccffe6f19049153950e1d31f6604f66 /capture_sync.c | |
parent | 3288a39db202082ceb1120367d017792323fdecf (diff) | |
download | wireshark-2896811274e430759305c7f25889cb0214213409.tar.gz wireshark-2896811274e430759305c7f25889cb0214213409.tar.bz2 wireshark-2896811274e430759305c7f25889cb0214213409.zip |
Fix about 150 warnings new to gcc 4.0 in the error on warning directories.
Comment out -Werror in plugins/asn1/ until warnings can be fixed.
svn path=/trunk/; revision=21158
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/capture_sync.c b/capture_sync.c index 4b67d0cd58..b6fba3e1a7 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, header, 4); + newly = pipe_read_bytes(pipe, (char*)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(buffer, 4, &indicator, &primary_len); + pipe_convert_header((guchar*)buffer, 4, &indicator, &primary_len); primary_msg = buffer+4; /* convert secondary message */ - pipe_convert_header(primary_msg + primary_len, 4, &indicator, &secondary_len); + pipe_convert_header((guchar*)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); |