* src/usermod.c: Add annotations to indicate that fail_exit() does
not return. * src/usermod.c: Fix typo in notreached annotation.
This commit is contained in:
parent
019048c555
commit
00d1ab6454
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2011-07-30 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* libmisc/find_new_uid.c: free (used_uids) on return.
|
* libmisc/find_new_uid.c: free (used_uids) on return.
|
||||||
|
@ -159,7 +159,7 @@ static void selinux_update_mapping (void);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void new_spent (struct spwd *);
|
static void new_spent (struct spwd *);
|
||||||
static void fail_exit (int);
|
static /*@noreturn@*/void fail_exit (int);
|
||||||
static void update_group (void);
|
static void update_group (void);
|
||||||
|
|
||||||
#ifdef SHADOWGRP
|
#ifdef SHADOWGRP
|
||||||
@ -557,7 +557,7 @@ static void new_spent (struct spwd *spent)
|
|||||||
/*
|
/*
|
||||||
* fail_exit - exit with an error code after unlocking files
|
* 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_locked) {
|
||||||
if (gr_unlock () == 0) {
|
if (gr_unlock () == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user