src/chfn,chpasswd,newusers: declare fatal_exit() NORETURN

Help static analyzers to understand fatal_exit() does never return.
This commit is contained in:
Christian Göttsche
2023-12-11 18:12:24 +01:00
committed by Serge Hallyn
parent d2e7edcd00
commit 9c39b13194
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ static bool pw_locked = false;
*/
/* local function prototypes */
static void fail_exit (int code);
NORETURN static void fail_exit (int code);
NORETURN static void usage (int status);
static bool may_change_field (int);
static void new_fields (void);
+1 -1
View File
@@ -61,7 +61,7 @@ static bool pw_locked = false;
static bool spw_locked = false;
/* local function prototypes */
static void fail_exit (int code);
NORETURN static void fail_exit (int code);
NORETURN static void usage (int status);
static void process_flags (int argc, char **argv);
static void check_flags (void);
+2 -2
View File
@@ -90,8 +90,8 @@ static bool sub_gid_locked = false;
#endif /* ENABLE_SUBIDS */
/* local function prototypes */
static void usage (int status);
static void fail_exit (int);
NORETURN static void usage (int status);
NORETURN static void fail_exit (int);
static int add_group (const char *, const char *, gid_t *, gid_t);
static int get_user_id (const char *, uid_t *);
static int add_user (const char *, uid_t, gid_t);