aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Lars Völker <lars.voelker@technica-engineering.de>2021-07-16 11:02:13 +0200
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-07-16 14:45:21 +0000
commit73bb25bbc98d4e397ed0d5de172020b319e744f2 (patch)
treeb725ad15fae32ab41e2cb6da9a27ba449e64e52b
parentc22846d898203c48018bfe045d82dc32a2216065 (diff)
BLF: fix clang warnings
-rw-r--r--epan/dissectors/file-blf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/file-blf.c b/epan/dissectors/file-blf.c
index 9234bf7041..d8c32c5c4a 100644
--- a/epan/dissectors/file-blf.c
+++ b/epan/dissectors/file-blf.c
@@ -376,7 +376,7 @@ dissect_blf_next_object(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gin
gint offset_orig = offset;
while (tvb_captured_length_remaining(tvb, offset) >= 16) {
- if (!tvb_memeql(tvb, offset, blf_lobj_magic, MAGIC_NUMBER_SIZE) == 0) {
+ if (tvb_memeql(tvb, offset, blf_lobj_magic, MAGIC_NUMBER_SIZE) != 0) {
offset += 1;
} else {
int bytes_parsed = dissect_blf_lobj(tvb, pinfo, tree, offset);
@@ -400,7 +400,7 @@ dissect_blf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
proto_item *ti;
guint length;
- if (tvb_captured_length(tvb) < 8 || !tvb_memeql(tvb, 0, blf_file_magic, MAGIC_NUMBER_SIZE) == 0) {
+ if (tvb_captured_length(tvb) < 8 || tvb_memeql(tvb, 0, blf_file_magic, MAGIC_NUMBER_SIZE) != 0) {
/* does not start with LOGG, so this is not BLF it seems */
return 0;
}