[monitoring-plugins] Declare crash function as noreturn

RincewindsHat git at monitoring-plugins.org
Sat Mar 26 13:50:10 CET 2022


 Module: monitoring-plugins
 Branch: check_icmp-compiler_warnings
 Commit: 0c9fae5758838fa7fff774443e3d004110264771
 Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
   Date: Sat Mar 26 13:47:42 2022 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=0c9fae5

Declare crash function as noreturn

---

 plugins-root/check_icmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 1b6a5e1..c7e1865 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 *);
 static void parse_address(struct sockaddr_storage *, char *, int);
 static unsigned short icmp_checksum(uint16_t *, size_t);
 static void finish(int);
-static void crash(const char *, ...);
+static void crash(const char *, ...) __attribute__((noreturn));
 
 /** external **/
 extern int optind, opterr, optopt;



More information about the Commits mailing list