summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/cap_set_fd.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-09-19 19:14:31 +0000
committerrwatson <rwatson@FreeBSD.org>2000-09-19 19:14:31 +0000
commit78ae6f5157822b60e07699a5eb3d798bbf769909 (patch)
treef189bb3e9e93a1f97e4629080f91974e04c95a15 /lib/libc/posix1e/cap_set_fd.c
parent5d231e02f984234b9e069b4c6c7361c85d966236 (diff)
downloadFreeBSD-src-78ae6f5157822b60e07699a5eb3d798bbf769909.zip
FreeBSD-src-78ae6f5157822b60e07699a5eb3d798bbf769909.tar.gz
o General warning fixing commit
- Include <stdlib.h> and <string.h> as needed for prototypes - Remove unneeded "error" variables o Make cap_init() use cap_clear() instead of bzero() Obtained from: TrustedBSD Project
Diffstat (limited to 'lib/libc/posix1e/cap_set_fd.c')
-rw-r--r--lib/libc/posix1e/cap_set_fd.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libc/posix1e/cap_set_fd.c b/lib/libc/posix1e/cap_set_fd.c
index ba2f356..70b7160 100644
--- a/lib/libc/posix1e/cap_set_fd.c
+++ b/lib/libc/posix1e/cap_set_fd.c
@@ -32,12 +32,9 @@
#include <sys/types.h>
#include <sys/capability.h>
-#include <sys/errno.h>
-
int
cap_set_fd(int fd, cap_t cap_p)
{
- int error;
return (__cap_set_fd(fd, cap_p));
}
OpenPOWER on IntegriCloud