From f26bf1396557e4bc739d6a7703099f75bfe2fb99 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 25 Feb 2019 21:08:46 -0500 Subject: fix warning from -Wall --- src/unistd/getegid.c | 2 +- src/unistd/geteuid.c | 2 +- src/unistd/getgid.c | 2 +- src/unistd/getopt.c | 2 +- src/unistd/getpgrp.c | 2 +- src/unistd/getpid.c | 2 +- src/unistd/getppid.c | 2 +- src/unistd/getuid.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/unistd') 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) -- cgit v1.2.1