diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-06-18 19:21:42 +0100 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-06-19 01:23:31 +0000 |
commit | 0e50979b3f45250ee1dacd5c826a281ad9a9c460 (patch) | |
tree | cfaf2f2221f9ebd948fab14b180cd3219dcc3523 /epan/oids.c | |
parent | b4eddd32c18816b7b5f9e074b88559d88f28123c (diff) |
Replace g_assert() with ws_assert()
Diffstat (limited to 'epan/oids.c')
-rw-r--r-- | epan/oids.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/oids.c b/epan/oids.c index eef840d2b7..236cbb6b6f 100644 --- a/epan/oids.c +++ b/epan/oids.c @@ -25,6 +25,7 @@ #include "packet.h" #include "wsutil/filesystem.h" #include "dissectors/packet-ber.h" +#include <wsutil/ws_assert.h> #ifdef HAVE_LIBSMI #include <smi.h> @@ -152,12 +153,12 @@ static oid_info_t* add_oid(const char* name, oid_kind_t kind, const oid_value_ty c = n; } while(++i); - g_assert_not_reached(); + ws_assert_not_reached(); return NULL; } void oid_add(const char* name, guint oid_len, guint32 *subids) { - g_assert(subids && *subids <= 2); + ws_assert(subids && *subids <= 2); if (oid_len) { gchar* sub = oid_subid2string(NULL, subids,oid_len); D(3,("\tOid (from subids): %s %s ",name?name:"NULL", sub)); @@ -1038,7 +1039,7 @@ guint oid_encoded2subid_sub(wmem_allocator_t *scope, const guint8 *oid_bytes, gi subid = 0; } - g_assert(subids == subid_overflow); + ws_assert(subids == subid_overflow); return n; } |