summaryrefslogtreecommitdiff
path: root/lib/libc/string/memset.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-11 21:08:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-11 21:08:17 +0000
commit2ff2a6df1f367e97160f7c805c68b9a829b03a45 (patch)
tree280678041612d983ee3097b18e8d18d54b7b9f67 /lib/libc/string/memset.c
parent21ac64d7aa40363658ebcaef7506daa87f941f2c (diff)
ansification; pval ok
Diffstat (limited to 'lib/libc/string/memset.c')
-rw-r--r--lib/libc/string/memset.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/string/memset.c b/lib/libc/string/memset.c
index 161a4990025..9bc0556faa4 100644
--- a/lib/libc/string/memset.c
+++ b/lib/libc/string/memset.c
@@ -31,20 +31,17 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: memset.c,v 1.3 2003/06/02 20:18:38 millert Exp $";
+static char *rcsid = "$OpenBSD: memset.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <string.h>
void *
-memset(dst, c, n)
- void *dst;
- register int c;
- register size_t n;
+memset(void *dst, int c, size_t n)
{
if (n != 0) {
- register char *d = dst;
+ char *d = dst;
do
*d++ = c;