summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/swab.c
diff options
context:
space:
mode:
authorotto <>2005-03-30 20:13:52 +0000
committerotto <>2005-03-30 20:13:52 +0000
commit862e6817b3f445520231811d27e5ba22fa2ed1c7 (patch)
treea84bc4f2badc3483fb1f0e8f1911cb99ac461521 /src/lib/libc/string/swab.c
parent894b6ab0099e7d9ca2ad9acb75246cd0a4542167 (diff)
downloadopenbsd-862e6817b3f445520231811d27e5ba22fa2ed1c7.tar.gz
openbsd-862e6817b3f445520231811d27e5ba22fa2ed1c7.tar.bz2
openbsd-862e6817b3f445520231811d27e5ba22fa2ed1c7.zip
ansify + deregister. no binary change on i386. ok deraadt@ pat@ moritz@
Diffstat (limited to 'src/lib/libc/string/swab.c')
-rw-r--r--src/lib/libc/string/swab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/string/swab.c b/src/lib/libc/string/swab.c
index b928f21aa7..0129561aa3 100644
--- a/src/lib/libc/string/swab.c
+++ b/src/lib/libc/string/swab.c
@@ -31,7 +31,7 @@
31 */ 31 */
32 32
33#if defined(LIBC_SCCS) && !defined(lint) 33#if defined(LIBC_SCCS) && !defined(lint)
34static char *rcsid = "$OpenBSD: swab.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $"; 34static char *rcsid = "$OpenBSD: swab.c,v 1.6 2005/03/30 20:13:52 otto Exp $";
35#endif /* LIBC_SCCS and not lint */ 35#endif /* LIBC_SCCS and not lint */
36 36
37#include <unistd.h> 37#include <unistd.h>
@@ -39,9 +39,9 @@ static char *rcsid = "$OpenBSD: swab.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $";
39void 39void
40swab(const void *from, void *to, size_t len) 40swab(const void *from, void *to, size_t len)
41{ 41{
42 register unsigned long temp; 42 unsigned long temp;
43 register int n; 43 int n;
44 register char *fp, *tp; 44 char *fp, *tp;
45 45
46 n = (len >> 1) + 1; 46 n = (len >> 1) + 1;
47 fp = (char *)from; 47 fp = (char *)from;