summaryrefslogtreecommitdiff
path: root/sys.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-01-28 14:33:41 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-01-28 14:33:41 -0800
commit87a181ce2647225e21e5824104ca1f7b04a221c7 (patch)
tree85adb0349832abcdcd1ac4492f9ad10e929450d2 /sys.c
parent191f62fab880b9aa001a566a95343c4fe5565b40 (diff)
Fix sparse warnings: non-ANSI function declaration (missing void)
Diffstat (limited to 'sys.c')
-rw-r--r--sys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys.c b/sys.c
index 1fa8ecb..b7535c4 100644
--- a/sys.c
+++ b/sys.c
@@ -455,7 +455,7 @@ openTty(char *line)
saved IDs at all, so there's no issue. */
#if (defined(BSD) && !defined(_POSIX_SAVED_IDS)) || defined(_MINIX)
int
-droppriv()
+droppriv(void)
{
int rc;
rc = setuid(getuid());
@@ -465,7 +465,7 @@ droppriv()
}
#elif defined(_POSIX_SAVED_IDS)
int
-droppriv()
+droppriv(void)
{
int uid = getuid();
int euid = geteuid();
@@ -484,7 +484,7 @@ droppriv()
}
#else
int
-droppriv()
+droppriv(void)
{
int uid = getuid();
int euid = geteuid();