diff options
| author | kleink <kleink@NetBSD.org> | 1998-01-12 16:05:40 +0000 |
|---|---|---|
| committer | kleink <kleink@NetBSD.org> | 1998-01-12 16:05:40 +0000 |
| commit | f1d296dd607a2c3440fb1e978ea5fbd5fae96ad5 (patch) | |
| tree | 72da42466ed6f7290fa6a438b3b6e2fdb05b14e0 /lib/libc/string | |
| parent | 98e7377438619f5971909492fae2152ca11826b0 (diff) | |
Per XPG4, move the prototype of swab() from <string.h> to <unistd.h>.
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/swab.3 | 4 | ||||
| -rw-r--r-- | lib/libc/string/swab.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/string/swab.3 b/lib/libc/string/swab.3 index 1f0cc45bbc7..7f2ad56bdf9 100644 --- a/lib/libc/string/swab.3 +++ b/lib/libc/string/swab.3 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)swab.3 6.6 (Berkeley) 5/1/91 -.\" $NetBSD: swab.3,v 1.3 1997/10/09 10:09:39 lukem Exp $ +.\" $NetBSD: swab.3,v 1.4 1998/01/12 16:05:41 kleink Exp $ .\" .Dd May 1, 1991 .Dt SWAB 3 @@ -39,7 +39,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 6a0229ac241..e9d9e5f52ea 100644 --- a/lib/libc/string/swab.c +++ b/lib/libc/string/swab.c @@ -1,4 +1,4 @@ -/* $NetBSD: swab.c,v 1.4 1997/07/13 20:24:37 christos Exp $ */ +/* $NetBSD: swab.c,v 1.5 1998/01/12 16:05:42 kleink Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -41,11 +41,11 @@ #if 0 static char *sccsid = "@(#)swab.c 5.10 (Berkeley) 3/6/91"; #else -__RCSID("$NetBSD: swab.c,v 1.4 1997/07/13 20:24:37 christos Exp $"); +__RCSID("$NetBSD: swab.c,v 1.5 1998/01/12 16:05:42 kleink Exp $"); #endif #endif /* LIBC_SCCS and not lint */ -#include <string.h> +#include <unistd.h> void swab(from, to, len) |
