diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-12-27 00:46:32 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-12-27 00:51:54 +0200 |
commit | cb8b9461907373485acabb90bc1cad5263abc8b8 (patch) | |
tree | 63c9a28993791d8b836685a6d01c608ba604e0d3 /src/userprivs.c | |
parent | a1d8a2d3662cde5f1d0ec411e372c3614bb49a6d (diff) | |
download | pies-cb8b9461907373485acabb90bc1cad5263abc8b8.tar.gz pies-cb8b9461907373485acabb90bc1cad5263abc8b8.tar.bz2 |
Minor fixes.
* lib/proctitle.c (mf_proctitle_format): Check return from
vasprintf instead of checking the return pointer.
* src/inetd-bi.c: Check return values from write where reasonable.
* src/progman.c (redirect_to_file): Check return from chown.
(close_fds): Fix coredump (upper boundary was wrong).
(open_redirector, progman_dump_stats): Check return values.
* src/sysvinit.c (sysvinit_setenv): Remove unused variable.
* src/userprivs.c (str_eq, str_dispose): Remove unused functions.
* src/utmp.c: Check return values.
Diffstat (limited to 'src/userprivs.c')
-rw-r--r-- | src/userprivs.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/userprivs.c b/src/userprivs.c index e64162b..5f56ce9 100644 --- a/src/userprivs.c +++ b/src/userprivs.c @@ -26,18 +26,6 @@ #include <stdbool.h> #include "pies.h" -static bool -str_eq (const void *elt1, const void *elt2) -{ - return strcmp (elt1, elt2) == 0; -} - -void -str_dispose (const void *elt) -{ - free ((void*)elt); -} - struct grecs_list * get_user_groups (struct grecs_list *init_list, const char *user) { |