aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-12-17 13:40:05 +0000
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-12-18 18:54:08 +0000
commitd443197097772402f92827567cf61e57a138a03d (patch)
tree39f5ed4a3144b22ed0804c42a5d81ccb5c24492e /dumpcap.c
parent2de477f499100963369be9485851131438b25a96 (diff)
Prefer the portable _Noreturn attribute (C11)
Use _Noreturn, available with C11, instead of vendor specific attributes. It's not compatible with C++ so we we must keep the old code for now.
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 07cafd4aae..fbc8a76db0 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -343,7 +343,7 @@ static void capture_loop_get_errmsg(char *errmsg, size_t errmsglen,
const char *fname, int err,
gboolean is_close);
-static void WS_NORETURN exit_main(int err);
+WS_NORETURN static void exit_main(int err);
static void report_new_capture_file(const char *filename);
static void report_packet_count(unsigned int packet_count);