From ef9cb1d8ded2ecbcf9142dd42b1879d3b22788d8 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Wed, 1 Jun 2016 20:38:54 +0000 Subject: [PATCH] tools/mkpasswd: functions that call exit(3) should be marked noreturn --- tools/mkpasswd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mkpasswd.c b/tools/mkpasswd.c index 689f912ef..57f73e4f1 100644 --- a/tools/mkpasswd.c +++ b/tools/mkpasswd.c @@ -41,8 +41,8 @@ static char *make_bf_salt_para(int, char *); static char *generate_random_salt(char *, int); static char *generate_poor_salt(char *, int); -static void full_usage(void); -static void brief_usage(void); +static void full_usage(void) __attribute__((noreturn)); +static void brief_usage(void) __attribute__((noreturn)); static char saltChars[] = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; /* 0 .. 63, ascii - 64 */