summaryrefslogtreecommitdiff
path: root/src/unistd
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-25 21:08:46 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-25 21:08:46 -0500
commitf26bf1396557e4bc739d6a7703099f75bfe2fb99 (patch)
tree1ac1d21defcccac8032590aa6bc145b9d8877016 /src/unistd
parent21f6ab11f8554328772ac992ced6947b2b67df65 (diff)
fix warning from -Wall
Diffstat (limited to 'src/unistd')
-rw-r--r--src/unistd/getegid.c2
-rw-r--r--src/unistd/geteuid.c2
-rw-r--r--src/unistd/getgid.c2
-rw-r--r--src/unistd/getopt.c2
-rw-r--r--src/unistd/getpgrp.c2
-rw-r--r--src/unistd/getpid.c2
-rw-r--r--src/unistd/getppid.c2
-rw-r--r--src/unistd/getuid.c2
8 files changed, 8 insertions, 8 deletions
diff --git a/src/unistd/getegid.c b/src/unistd/getegid.c
index 617e3b70..da8a372f 100644
--- a/src/unistd/getegid.c
+++ b/src/unistd/getegid.c
@@ -5,7 +5,7 @@
gid_t getegid(void)
{
- SCNOFAIL();
+ SYSCALL("getegid", gid_t, -1, 0, 0, 0, 0, 0, 0);
}
/*
POSIX(1)
diff --git a/src/unistd/geteuid.c b/src/unistd/geteuid.c
index 6ff0d186..2bc4c054 100644
--- a/src/unistd/geteuid.c
+++ b/src/unistd/geteuid.c
@@ -5,7 +5,7 @@
uid_t geteuid(void)
{
- SCNOFAIL();
+ SYSCALL("geteuid", uid_t, -1, 0, 0, 0, 0, 0, 0);
}
/*
POSIX(1)
diff --git a/src/unistd/getgid.c b/src/unistd/getgid.c
index 03c5f62b..0d4a070d 100644
--- a/src/unistd/getgid.c
+++ b/src/unistd/getgid.c
@@ -5,7 +5,7 @@
gid_t getgid(void)
{
- SCNOFAIL();
+ SYSCALL("getgid", gid_t, -1, 0, 0, 0, 0, 0, 0);
}
/*
POSIX(1)
diff --git a/src/unistd/getopt.c b/src/unistd/getopt.c
index dc1803dd..a2dbea7b 100644
--- a/src/unistd/getopt.c
+++ b/src/unistd/getopt.c
@@ -8,7 +8,7 @@ int getopt(int argc, char * const argv[], const char *optstring)
static int optchar = 0;
char *cursor = NULL;
- if (optind = 0 || argv[optind][optchar] == '\0') {
+ if (optind == 0 || argv[optind][optchar] == '\0') {
optind++;
optchar = 0;
}
diff --git a/src/unistd/getpgrp.c b/src/unistd/getpgrp.c
index fd079ff1..897cd6be 100644
--- a/src/unistd/getpgrp.c
+++ b/src/unistd/getpgrp.c
@@ -5,7 +5,7 @@
pid_t getpgrp(void)
{
- SCNOFAIL();
+ SYSCALL("getpgrp", pid_t, -1, 0, 0, 0, 0, 0, 0);
}
/*
POSIX(1)
diff --git a/src/unistd/getpid.c b/src/unistd/getpid.c
index 333735b2..eb6be595 100644
--- a/src/unistd/getpid.c
+++ b/src/unistd/getpid.c
@@ -5,7 +5,7 @@
pid_t getpid(void)
{
- SCNOFAIL();
+ SYSCALL("getpid", pid_t, -1, 0, 0, 0, 0, 0, 0);
}
/*
POSIX(1)
diff --git a/src/unistd/getppid.c b/src/unistd/getppid.c
index d0518c3e..2fc880a2 100644
--- a/src/unistd/getppid.c
+++ b/src/unistd/getppid.c
@@ -5,7 +5,7 @@
pid_t getppid(void)
{
- SCNOFAIL();
+ SYSCALL("getppid", pid_t, -1, 0, 0, 0, 0, 0, 0);
}
/*
POSIX(1)
diff --git a/src/unistd/getuid.c b/src/unistd/getuid.c
index 8a06b900..d85814d4 100644
--- a/src/unistd/getuid.c
+++ b/src/unistd/getuid.c
@@ -5,7 +5,7 @@
uid_t getuid(void)
{
- SCNOFAIL();
+ SYSCALL("getuid", uid_t, -1, 0, 0, 0, 0, 0, 0);
}
/*
POSIX(1)