summaryrefslogtreecommitdiffstats
path: root/usr.bin/at/privs.h
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-06 17:32:29 +0000
committered <ed@FreeBSD.org>2011-11-06 17:32:29 +0000
commita2c6b647f175a4883ba5ab0f8ad139455fda88a0 (patch)
tree58a59ad89bbdc9e16f323354e08a4db07e98c2e1 /usr.bin/at/privs.h
parent8fdc44b4598afdb5f444d4e5da3dedc3c347a37f (diff)
downloadFreeBSD-src-a2c6b647f175a4883ba5ab0f8ad139455fda88a0.zip
FreeBSD-src-a2c6b647f175a4883ba5ab0f8ad139455fda88a0.tar.gz
Add missing static keywords to at(1).
While there, tidy up the privs.h part, where at.c has to #define to declare some globals. Also group static and non-static global variables in at.c.
Diffstat (limited to 'usr.bin/at/privs.h')
-rw-r--r--usr.bin/at/privs.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/usr.bin/at/privs.h b/usr.bin/at/privs.h
index 50dd6b1..c84f277 100644
--- a/usr.bin/at/privs.h
+++ b/usr.bin/at/privs.h
@@ -59,15 +59,8 @@
* to the real userid before calling any of them.
*/
-#ifndef MAIN
-extern
-#endif
-uid_t real_uid, effective_uid;
-
-#ifndef MAIN
-extern
-#endif
-gid_t real_gid, effective_gid;
+extern uid_t real_uid, effective_uid;
+extern gid_t real_gid, effective_gid;
#define RELINQUISH_PRIVS { \
real_uid = getuid(); \
OpenPOWER on IntegriCloud