* src/usermod.c: usage() does not return. Add annotations.
This commit is contained in:
parent
d1753cc25d
commit
2798e35d86
@ -11,6 +11,7 @@
|
|||||||
requested.
|
requested.
|
||||||
* src/usermod.c (process_flags): Check for oflg is not needed to
|
* src/usermod.c (process_flags): Check for oflg is not needed to
|
||||||
check if changes are needed.
|
check if changes are needed.
|
||||||
|
* src/usermod.c: usage() does not return. Add annotations.
|
||||||
|
|
||||||
2011-07-08 Nicolas François <nicolas.francois@centraliens.net>
|
2011-07-08 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ static bool sgr_locked = false;
|
|||||||
static void date_to_str (char *buf, size_t maxsize,
|
static void date_to_str (char *buf, size_t maxsize,
|
||||||
long int date, const char *negativ);
|
long int date, const char *negativ);
|
||||||
static int get_groups (char *);
|
static int get_groups (char *);
|
||||||
static void usage (int status);
|
static /*@noreturn@*/void usage (int status);
|
||||||
static void new_pwent (struct passwd *);
|
static void new_pwent (struct passwd *);
|
||||||
#ifdef WITH_SELINUX
|
#ifdef WITH_SELINUX
|
||||||
static void selinux_update_mapping (void);
|
static void selinux_update_mapping (void);
|
||||||
@ -303,7 +303,7 @@ static int get_groups (char *list)
|
|||||||
/*
|
/*
|
||||||
* usage - display usage message and exit
|
* usage - display usage message and exit
|
||||||
*/
|
*/
|
||||||
static void usage (int status)
|
static /*@noreturn@*/void usage (int status)
|
||||||
{
|
{
|
||||||
fprintf ((E_SUCCESS != status) ? stderr : stdout,
|
fprintf ((E_SUCCESS != status) ? stderr : stdout,
|
||||||
_("Usage: usermod [options] LOGIN\n"
|
_("Usage: usermod [options] LOGIN\n"
|
||||||
@ -919,7 +919,7 @@ static void process_flags (int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
usage (E_SUCCESS);
|
usage (E_SUCCESS);
|
||||||
break;
|
/* @notreached@ */break;
|
||||||
case 'l':
|
case 'l':
|
||||||
if (!is_valid_user_name (optarg)) {
|
if (!is_valid_user_name (optarg)) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
|
Loading…
Reference in New Issue
Block a user