summaryrefslogtreecommitdiffstats
path: root/usr.bin/at/privs.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/at/privs.h')
-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 50dd6b1..3f70ce8 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(); \
OpenPOWER on IntegriCloud