summaryrefslogtreecommitdiffstats
path: root/sys/lib/libsa/memset.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-08-11 06:23:07 +0000
committerderaadt <deraadt@openbsd.org>2003-08-11 06:23:07 +0000
commit599546b3df9d501c5df00d16afc0d6ef8054a751 (patch)
tree497dafb2e950a5b91385da061a8c32b00de30455 /sys/lib/libsa/memset.c
parentmake sure Debugger() is called only inside _both_ DDB and OSIOP_DEBUG (diff)
downloadwireguard-openbsd-599546b3df9d501c5df00d16afc0d6ef8054a751.tar.xz
wireguard-openbsd-599546b3df9d501c5df00d16afc0d6ef8054a751.zip
ansification and knf and protos
Diffstat (limited to 'sys/lib/libsa/memset.c')
-rw-r--r--sys/lib/libsa/memset.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/lib/libsa/memset.c b/sys/lib/libsa/memset.c
index 3c1dc4b19f2..6438f4366ec 100644
--- a/sys/lib/libsa/memset.c
+++ b/sys/lib/libsa/memset.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: memset.c,v 1.3 2003/08/08 03:36:07 deraadt Exp $ */
+/* $OpenBSD: memset.c,v 1.4 2003/08/11 06:23:09 deraadt Exp $ */
/*-
* Copyright (c) 1993
@@ -37,7 +37,8 @@
void *
memset(void *s1, int c, size_t n)
{
- register char *p = s1;
+ char *p = s1;
+
while (n--)
*p++ = c;
return s1;