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>
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);
/*
* 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"
break;
case 'h':
usage (E_SUCCESS);
- break;
+ /* @notreached@ */break;
case 'l':
if (!is_valid_user_name (optarg)) {
fprintf (stderr,