diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-03-26 13:47:42 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-03-26 13:47:42 +0100 |
commit | 0c9fae5758838fa7fff774443e3d004110264771 (patch) | |
tree | 44d00a9d7cdf04e6db7d7ec519a17093875b88c1 | |
parent | b0115b2b92fb4a2ba2d844ee867bacf77e518d66 (diff) | |
download | monitoring-plugins-0c9fae5758838fa7fff774443e3d004110264771.tar.gz |
Declare crash function as noreturn
-rw-r--r-- | plugins-root/check_icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index 1b6a5e17..c7e18653 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c | |||
@@ -196,7 +196,7 @@ static int handle_random_icmp(unsigned char *, struct sockaddr_storage *); | |||
196 | static void parse_address(struct sockaddr_storage *, char *, int); | 196 | static void parse_address(struct sockaddr_storage *, char *, int); |
197 | static unsigned short icmp_checksum(uint16_t *, size_t); | 197 | static unsigned short icmp_checksum(uint16_t *, size_t); |
198 | static void finish(int); | 198 | static void finish(int); |
199 | static void crash(const char *, ...); | 199 | static void crash(const char *, ...) __attribute__((noreturn)); |
200 | 200 | ||
201 | /** external **/ | 201 | /** external **/ |
202 | extern int optind, opterr, optopt; | 202 | extern int optind, opterr, optopt; |