not return.
* src/usermod.c: Fix typo in notreached annotation.
+2011-07-30 Nicolas François <nicolas.francois@centraliens.net>
+
+ * src/usermod.c: Add annotations to indicate that fail_exit() does
+ not return.
+ * src/usermod.c: Fix typo in notreached annotation.
+
2011-07-30 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/find_new_uid.c: free (used_uids) on return.
#endif
static void new_spent (struct spwd *);
-static void fail_exit (int);
+static /*@noreturn@*/void fail_exit (int);
static void update_group (void);
#ifdef SHADOWGRP
/*
* fail_exit - exit with an error code after unlocking files
*/
-static void fail_exit (int code)
+static /*@noreturn@*/void fail_exit (int code)
{
if (gr_locked) {
if (gr_unlock () == 0) {
break;
case 'h':
usage (E_SUCCESS);
- /* @notreached@ */break;
+ /*@notreached@*/break;
case 'l':
if (!is_valid_user_name (optarg)) {
fprintf (stderr,