summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-09-02 23:13:49 +0000
committerrwatson <rwatson@FreeBSD.org>2001-09-02 23:13:49 +0000
commitfea7223b35677731944abd4e09ab30e846d7aa5c (patch)
tree5647bae701e3f8ed02d8e17bc02969a89a78616a /lib/libc/posix1e
parenteb6143a73ea359a277c4ff8df2ea68bbd4569ab4 (diff)
downloadFreeBSD-src-fea7223b35677731944abd4e09ab30e846d7aa5c.zip
FreeBSD-src-fea7223b35677731944abd4e09ab30e846d7aa5c.tar.gz
o Sync up prototypes for cap_size() and cap_copy_ext() with
sys/capability.h--this compiled fine on i386 where (int) and (ssize_t) are the same, but broke on Alpha where they differ. Submitted by: Mike Barcroft <mike@FreeBSD.org> Obtained from: TrustedBSD Project
Diffstat (limited to 'lib/libc/posix1e')
-rw-r--r--lib/libc/posix1e/cap_copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/posix1e/cap_copy.c b/lib/libc/posix1e/cap_copy.c
index 591e1b2..21822c0 100644
--- a/lib/libc/posix1e/cap_copy.c
+++ b/lib/libc/posix1e/cap_copy.c
@@ -41,7 +41,7 @@
#include <errno.h>
#include <stdlib.h>
-int
+ssize_t
cap_copy_ext(void *ext_p, cap_t cap, ssize_t size)
{
if (size < 0) {
@@ -73,7 +73,7 @@ cap_copy_int(const void *ext_p)
return (c);
}
-int
+ssize_t
cap_size(cap_t cap)
{
(void)cap; /* silence warning */
OpenPOWER on IntegriCloud