aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/plugins.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-05-24 00:46:43 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-06-06 20:05:26 +0000
commit4aff36d501400552d7df59473db17ef7add8b11c (patch)
tree05518b1962382e2c4edf5935e9c4284747a0b302 /wsutil/plugins.c
parentef0f022f8629009daf7c31e204b9d65b1805f6e4 (diff)
Replace g_assert() with ws_assert() in places
Diffstat (limited to 'wsutil/plugins.c')
-rw-r--r--wsutil/plugins.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wsutil/plugins.c b/wsutil/plugins.c
index 63a48bc37d..28176f5e7e 100644
--- a/wsutil/plugins.c
+++ b/wsutil/plugins.c
@@ -26,6 +26,7 @@
#include <wsutil/report_message.h>
#include <wsutil/plugins.h>
+#include <wsutil/ws_assert.h>
typedef struct _plugin {
GModule *handle; /* handle returned by g_module_open */
@@ -60,7 +61,7 @@ type_to_dir(plugin_type_e type)
g_error("Unknown plugin type: %u. Aborting.", (unsigned) type);
break;
}
- g_assert_not_reached();
+ ws_assert_not_reached();
}
static inline const char *
@@ -77,7 +78,7 @@ type_to_name(plugin_type_e type)
g_error("Unknown plugin type: %u. Aborting.", (unsigned) type);
break;
}
- g_assert_not_reached();
+ ws_assert_not_reached();
}
static void