aboutsummaryrefslogtreecommitdiffstats
path: root/tfshark.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2017-03-11 16:44:20 +0100
committerMichael Mann <mmann78@netscape.net>2017-03-12 13:33:56 +0000
commita8b6284ed146fd73688867d413d24a31b714bf6b (patch)
tree8bf9082901471f3176af559fd0d4c1e568ed6b09 /tfshark.c
parent0501699a4e338948e6dec36915274402a9553808 (diff)
tfshark: fix this ‘if’ clause does not guard... [-Wmisleading-indentation]
Change-Id: If66223021d074e6cb3c7bde2af7cca9c72acb8c6 Reviewed-on: https://code.wireshark.org/review/20507 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'tfshark.c')
-rw-r--r--tfshark.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tfshark.c b/tfshark.c
index ae1e6e4..d7c7eac 100644
--- a/tfshark.c
+++ b/tfshark.c
@@ -1493,15 +1493,15 @@ load_cap_file(capture_file *cf, int max_packet_count, gint64 max_byte_count)
raw_data, tap_flags))
return 2;
- /* Stop reading if we have the maximum number of packets;
- * When the -c option has not been used, max_packet_count
- * starts at 0, which practically means, never stop reading.
- * (unless we roll over max_packet_count ?)
- */
- if ( (--max_packet_count == 0) || (max_byte_count != 0 && data_offset >= max_byte_count)) {
- err = 0; /* This is not an error */
- break;
- }
+ /* Stop reading if we have the maximum number of packets;
+ * When the -c option has not been used, max_packet_count
+ * starts at 0, which practically means, never stop reading.
+ * (unless we roll over max_packet_count ?)
+ */
+ if ( (--max_packet_count == 0) || (max_byte_count != 0 && data_offset >= max_byte_count)) {
+ err = 0; /* This is not an error */
+ break;
+ }
}
if (edt) {