diff options
author | tmm <tmm@FreeBSD.org> | 2001-04-24 20:50:42 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2001-04-24 20:50:42 +0000 |
commit | 2d5016b9030b8d30fe7da34abe818822947c208f (patch) | |
tree | 34e2084991d6ffb9d4096a9bda244b04d213881b /lib/libc/posix1e/cap_get_proc.c | |
parent | ae091bd9b27772cf7a6b60658a6cae629e24cedb (diff) | |
download | FreeBSD-src-2d5016b9030b8d30fe7da34abe818822947c208f.zip FreeBSD-src-2d5016b9030b8d30fe7da34abe818822947c208f.tar.gz |
Remove bogus assignments of libc syscall stub return values to errno;
the stubs do errno assignments and return -1 in this case, so that errno
would end up with this value.
Approved by: rwatson
Diffstat (limited to 'lib/libc/posix1e/cap_get_proc.c')
-rw-r--r-- | lib/libc/posix1e/cap_get_proc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libc/posix1e/cap_get_proc.c b/lib/libc/posix1e/cap_get_proc.c index 5baa45a..30afaef 100644 --- a/lib/libc/posix1e/cap_get_proc.c +++ b/lib/libc/posix1e/cap_get_proc.c @@ -49,7 +49,6 @@ cap_get_proc(void) error = __cap_get_proc(cap); if (error) { - errno = error; cap_free(cap); return (NULL); } |