diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-12-26 06:14:44 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-12-26 06:14:44 +0000 |
commit | 44d7a093e8841f7ccf383f7aa6d5783bccb86656 (patch) | |
tree | a8b8680e04203491158bbd7032c16e37e53bde92 /wiretap/iseries.c | |
parent | 07350b2b53445b1a12a5dd0cd00881252640b8db (diff) | |
download | wireshark-44d7a093e8841f7ccf383f7aa6d5783bccb86656.tar.gz |
Widen an argument to match its (theoretical) widest possible width. See
if that squelches a loop-optimization warning.
svn path=/trunk/; revision=46752
Diffstat (limited to 'wiretap/iseries.c')
-rw-r--r-- | wiretap/iseries.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/wiretap/iseries.c b/wiretap/iseries.c index 41d40a6278..e2b2bb2e39 100644 --- a/wiretap/iseries.c +++ b/wiretap/iseries.c @@ -195,7 +195,7 @@ static int iseries_parse_packet (wtap * wth, FILE_T fh, guint8 * pd, int *err, gchar ** err_info); static int iseries_UNICODE_to_ASCII (guint8 * buf, guint bytes); static gboolean iseries_parse_hex_string (const char * ascii, guint8 * buf, - int len); + size_t len); int iseries_open (wtap * wth, int *err, gchar ** err_info) @@ -891,12 +891,12 @@ iseries_parse_packet (wtap * wth, FILE_T fh, buffer_assure_space (wth->frame_buffer, ISERIES_MAX_PACKET_LEN); buf = buffer_start_ptr (wth->frame_buffer); /* Convert ascii data to binary and return in the frame buffer */ - iseries_parse_hex_string (ascii_buf, buf, (int) strlen (ascii_buf)); + iseries_parse_hex_string (ascii_buf, buf, strlen (ascii_buf)); } else { /* Convert ascii data to binary and return in the frame buffer */ - iseries_parse_hex_string (ascii_buf, pd, (int) strlen (ascii_buf)); + iseries_parse_hex_string (ascii_buf, pd, strlen (ascii_buf)); } /* free buffer allocs and return */ @@ -945,9 +945,10 @@ iseries_UNICODE_to_ASCII (guint8 * buf, guint bytes) * Requires ASCII hex data and buffer to populate with binary data */ static gboolean -iseries_parse_hex_string (const char * ascii, guint8 * buf, int len) +iseries_parse_hex_string (const char * ascii, guint8 * buf, size_t len) { - int i, byte; + size_t i; + int byte; gint hexvalue; guint8 bytevalue; |