diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/string/swab.3 | 4 | ||||
-rw-r--r-- | lib/libc/string/swab.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/string/swab.3 b/lib/libc/string/swab.3 index 4d27e17..93d879d 100644 --- a/lib/libc/string/swab.3 +++ b/lib/libc/string/swab.3 @@ -41,9 +41,9 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In string.h +.In unistd.h .Ft void -.Fn swab "const void * restrict src" "void * restrict dst" "size_t len" +.Fn swab "const void * restrict src" "void * restrict dst" "ssize_t len" .Sh DESCRIPTION The function .Fn swab diff --git a/lib/libc/string/swab.c b/lib/libc/string/swab.c index aa6f268..8c0c43f 100644 --- a/lib/libc/string/swab.c +++ b/lib/libc/string/swab.c @@ -40,10 +40,10 @@ static char sccsid[] = "@(#)swab.c 8.1 (Berkeley) 6/4/93"; #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include <string.h> +#include <unistd.h> void -swab(const void * __restrict from, void * __restrict to, size_t len) +swab(const void * __restrict from, void * __restrict to, ssize_t len) { unsigned long temp; int n; |