diff options
author | Dario Lombardo <lomato@gmail.com> | 2019-01-04 14:12:45 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-01-04 14:15:58 +0000 |
commit | 905d87a28fe8fc61691373dddb16c57ebab0f58b (patch) | |
tree | 6d5109c1a827065e58e5feb24d73b80e2e560a7f /wiretap/vms.c | |
parent | 393b22047be82dcf1194800e56a9df481759a9b6 (diff) |
wiretap: fix code according to clang-tidy.
Change-Id: I7f539968e9dce3a49112b7aeaa052b8cdb7501a6
Reviewed-on: https://code.wireshark.org/review/31364
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wiretap/vms.c')
-rw-r--r-- | wiretap/vms.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/vms.c b/wiretap/vms.c index 5dee35fab6..978a4e53e0 100644 --- a/wiretap/vms.c +++ b/wiretap/vms.c @@ -482,7 +482,7 @@ parse_vms_packet(FILE_T fh, wtap_rec *rec, Buffer *buf, int *err, gchar **err_in */ static gboolean parse_single_hex_dump_line(char* rec, guint8 *buf, long byte_offset, - int in_off, int remaining) { + int in_off, int remaining_bytes) { int i; char *s; @@ -499,14 +499,14 @@ parse_single_hex_dump_line(char* rec, guint8 *buf, long byte_offset, return FALSE; } - if (remaining > 16) - remaining = 16; + if (remaining_bytes > 16) + remaining_bytes = 16; /* Read the octets right to left, as that is how they are displayed * in VMS. */ - for (i = 0; i < remaining; i++) { + for (i = 0; i < remaining_bytes; i++) { lbuf[0] = rec[offsets[i] + in_off]; lbuf[1] = rec[offsets[i] + 1 + in_off]; |