diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-05-24 00:46:43 +0100 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-06-06 20:05:26 +0000 |
commit | 4aff36d501400552d7df59473db17ef7add8b11c (patch) | |
tree | 05518b1962382e2c4edf5935e9c4284747a0b302 /wiretap/libpcap.c | |
parent | ef0f022f8629009daf7c31e204b9d65b1805f6e4 (diff) |
Replace g_assert() with ws_assert() in places
Diffstat (limited to 'wiretap/libpcap.c')
-rw-r--r-- | wiretap/libpcap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c index 15e8a04e6d..70e85d2862 100644 --- a/wiretap/libpcap.c +++ b/wiretap/libpcap.c @@ -18,6 +18,7 @@ #include "pcap-encap.h" #include "libpcap.h" #include "erf-common.h" +#include <wsutil/ws_assert.h> /* See source to the "libpcap" library for information on the "libpcap" file format. */ @@ -584,7 +585,7 @@ done: break; default: - g_assert_not_reached(); + ws_assert_not_reached(); } /* @@ -969,7 +970,7 @@ static int libpcap_read_header(wtap *wth, FILE_T fh, int *err, gchar **err_info, break; default: - g_assert_not_reached(); + ws_assert_not_reached(); bytes_to_read = 0; } if (!wtap_read_bytes_or_eof(fh, hdr, bytes_to_read, err, err_info)) |