path: root/src/unistd/setpgid.c
diff options
authorRich Felker <>2011-09-26 00:59:28 -0400
committerRich Felker <>2011-09-26 00:59:28 -0400
commitfd142e5ec44aaafffbb8bb4ea41c4288d3fa937a (patch)
tree23fac00d2f8a9d7851d336d9bbb7d3417edc6980 /src/unistd/setpgid.c
parent729d6368bdf9faa33299cdfa68efc7422af33bd7 (diff)
cleanup various minor issues reported by nsz
the changes to syscall_ret are mostly no-ops in the generated code, just cleanup of type issues and removal of some implementation-defined behavior. the one exception is the change in the comparison value, which is fixed so that 0xf...f000 (which in principle could be a valid return value for mmap, although probably never in reality) is not treated as an error return.
Diffstat (limited to 'src/unistd/setpgid.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/setpgid.c b/src/unistd/setpgid.c
index 4a5a3d6b..06160695 100644
--- a/src/unistd/setpgid.c
+++ b/src/unistd/setpgid.c
@@ -1,7 +1,7 @@
#include <unistd.h>
#include "syscall.h"
-pid_t setpgid(pid_t pid, pid_t pgid)
+int setpgid(pid_t pid, pid_t pgid)
return syscall(SYS_setpgid, pid, pgid);