summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/string.h3
-rw-r--r--include/unistd.h3
-rw-r--r--lib/libc/string/swab.34
-rw-r--r--lib/libc/string/swab.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/include/string.h b/include/string.h
index 8c952da64c6..5b8034dc481 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: string.h,v 1.2 1997/09/21 10:45:54 niklas Exp $ */
+/* $OpenBSD: string.h,v 1.3 1998/02/10 02:19:46 deraadt Exp $ */
/* $NetBSD: string.h,v 1.6 1994/10/26 00:56:30 cgd Exp $ */
/*-
@@ -90,7 +90,6 @@ void strmode __P((int, char *));
int strncasecmp __P((const char *, const char *, size_t));
char *strsep __P((char **, const char *));
char *strsignal __P((int));
-void swab __P((const void *, void *, size_t));
#endif
__END_DECLS
diff --git a/include/unistd.h b/include/unistd.h
index 2c3c672119a..d8722ecf100 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.16 1997/12/27 12:03:44 tholo Exp $ */
+/* $OpenBSD: unistd.h,v 1.17 1998/02/10 02:19:47 deraadt Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -169,6 +169,7 @@ int setreuid __P((int, int));
int setrgid __P((gid_t));
int setruid __P((uid_t));
void setusershell __P((void));
+void swab __P((const void *, void *, size_t));
int swapon __P((const char *));
int symlink __P((const char *, const char *));
void sync __P((void));
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)