* src/usermod.c: usage() does not return. Add annotations.

This commit is contained in:
nekral-guest 2011-07-14 13:29:22 +00:00
parent d1753cc25d
commit 2798e35d86
2 changed files with 4 additions and 3 deletions

View File

@ -11,6 +11,7 @@
requested.
* src/usermod.c (process_flags): Check for oflg is not needed to
check if changes are needed.
* src/usermod.c: usage() does not return. Add annotations.
2011-07-08 Nicolas François <nicolas.francois@centraliens.net>

View File

@ -152,7 +152,7 @@ static bool sgr_locked = false;
static void date_to_str (char *buf, size_t maxsize,
long int date, const char *negativ);
static int get_groups (char *);
static void usage (int status);
static /*@noreturn@*/void usage (int status);
static void new_pwent (struct passwd *);
#ifdef WITH_SELINUX
static void selinux_update_mapping (void);
@ -303,7 +303,7 @@ static int get_groups (char *list)
/*
* usage - display usage message and exit
*/
static void usage (int status)
static /*@noreturn@*/void usage (int status)
{
fprintf ((E_SUCCESS != status) ? stderr : stdout,
_("Usage: usermod [options] LOGIN\n"
@ -919,7 +919,7 @@ static void process_flags (int argc, char **argv)
break;
case 'h':
usage (E_SUCCESS);
break;
/* @notreached@ */break;
case 'l':
if (!is_valid_user_name (optarg)) {
fprintf (stderr,