aboutsummaryrefslogtreecommitdiffstats
path: root/tfshark.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-06-18 19:21:42 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-06-19 01:23:31 +0000
commit0e50979b3f45250ee1dacd5c826a281ad9a9c460 (patch)
treecfaf2f2221f9ebd948fab14b180cd3219dcc3523 /tfshark.c
parentb4eddd32c18816b7b5f9e074b88559d88f28123c (diff)
Replace g_assert() with ws_assert()
Diffstat (limited to 'tfshark.c')
-rw-r--r--tfshark.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/tfshark.c b/tfshark.c
index f0bb001da5..fca0122874 100644
--- a/tfshark.c
+++ b/tfshark.c
@@ -48,6 +48,7 @@
#include <wsutil/privileges.h>
#include <wsutil/report_message.h>
#include <wsutil/wslog.h>
+#include <wsutil/ws_assert.h>
#include <cli_main.h>
#include <version_info.h>
@@ -896,7 +897,7 @@ main(int argc, char *argv[])
break;
default:
- g_assert_not_reached();
+ ws_assert_not_reached();
}
}
}
@@ -1239,7 +1240,7 @@ local_wtap_read(capture_file *cf, wtap_rec *file_rec _U_, int *err, gchar **err_
* but the read routine didn't set this packet's
* encapsulation type.
*/
- g_assert(wth->rec.rec_header.packet_header.pkt_encap != WTAP_ENCAP_PER_PACKET);
+ ws_assert(wth->rec.rec_header.packet_header.pkt_encap != WTAP_ENCAP_PER_PACKET);
#endif
return TRUE; /* success */
@@ -1647,7 +1648,7 @@ write_preamble(capture_file *cf)
return !ferror(stdout);
default:
- g_assert_not_reached();
+ ws_assert_not_reached();
return FALSE;
}
}
@@ -1947,7 +1948,7 @@ print_packet(capture_file *cf, epan_dissect_t *edt)
write_psml_columns(edt, stdout, FALSE);
return !ferror(stdout);
case WRITE_FIELDS: /*No non-verbose "fields" format */
- g_assert_not_reached();
+ ws_assert_not_reached();
break;
}
}
@@ -2009,7 +2010,7 @@ write_finale(void)
return !ferror(stdout);
default:
- g_assert_not_reached();
+ ws_assert_not_reached();
return FALSE;
}
}