summaryrefslogtreecommitdiff
path: root/usr.bin/at
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2012-10-19 14:49:42 +0000
committerEd Schouten <ed@FreeBSD.org>2012-10-19 14:49:42 +0000
commitbf70becee6ff4798acdcfd586a88ad38b7b17495 (patch)
treeddffe542a2e921ec48c73d322a2046f559a9d74f /usr.bin/at
parent39893d565a6c4b948fc0ba1b8c22ee1d57f2aaa4 (diff)
downloadsrc-test2-bf70becee6ff4798acdcfd586a88ad38b7b17495.tar.gz
src-test2-bf70becee6ff4798acdcfd586a88ad38b7b17495.zip
Notes
Diffstat (limited to 'usr.bin/at')
-rw-r--r--usr.bin/at/privs.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/usr.bin/at/privs.h b/usr.bin/at/privs.h
index 50dd6b108af4..3f70ce84e18d 100644
--- a/usr.bin/at/privs.h
+++ b/usr.bin/at/privs.h
@@ -59,15 +59,13 @@
* to the real userid before calling any of them.
*/
-#ifndef MAIN
-extern
-#endif
-uid_t real_uid, effective_uid;
+extern uid_t real_uid, effective_uid;
+extern gid_t real_gid, effective_gid;
-#ifndef MAIN
-extern
-#endif
+#ifdef MAIN
+uid_t real_uid, effective_uid;
gid_t real_gid, effective_gid;
+#endif
#define RELINQUISH_PRIVS { \
real_uid = getuid(); \