diff options
author | 1998-02-10 02:19:46 +0000 | |
---|---|---|
committer | 1998-02-10 02:19:46 +0000 | |
commit | c1f33f96355f1701fa621cb0776154f789c0ca34 (patch) | |
tree | 46c2a29c82c6356512de0656e75c2028fd991dbb /lib/libc | |
parent | Fix buffer overflows in quote1(), clear line buffer (diff) | |
download | wireguard-openbsd-c1f33f96355f1701fa621cb0776154f789c0ca34.tar.xz wireguard-openbsd-c1f33f96355f1701fa621cb0776154f789c0ca34.zip |
move proto to unistd.h
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 c64dbd6cb12..d1bfc358fbb 100644 --- a/lib/libc/string/swab.3 +++ b/lib/libc/string/swab.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: swab.3,v 1.2 1996/08/19 08:34:29 tholo Exp $ +.\" $OpenBSD: swab.3,v 1.3 1998/02/10 02:19:48 deraadt Exp $ .\" .Dd May 1, 1991 .Dt SWAB 3 @@ -38,7 +38,7 @@ .Nm swab .Nd swap adjacent bytes .Sh SYNOPSIS -.Fd #include <string.h> +.Fd #include <unistd.h> .Ft void .Fn swab "const void *src" "void *dst" "size_t len" .Sh DESCRIPTION diff --git a/lib/libc/string/swab.c b/lib/libc/string/swab.c index bdedd06672b..311cf13a531 100644 --- a/lib/libc/string/swab.c +++ b/lib/libc/string/swab.c @@ -35,10 +35,10 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: swab.c,v 1.2 1996/08/19 08:34:30 tholo Exp $"; +static char *rcsid = "$OpenBSD: swab.c,v 1.3 1998/02/10 02:19:48 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ -#include <string.h> +#include <unistd.h> void swab(from, to, len) |