summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/memset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/memset.c')
-rw-r--r--src/lib/libc/string/memset.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libc/string/memset.c b/src/lib/libc/string/memset.c
index 161a499002..9bc0556faa 100644
--- a/src/lib/libc/string/memset.c
+++ b/src/lib/libc/string/memset.c
@@ -31,20 +31,17 @@
31 */ 31 */
32 32
33#if defined(LIBC_SCCS) && !defined(lint) 33#if defined(LIBC_SCCS) && !defined(lint)
34static char *rcsid = "$OpenBSD: memset.c,v 1.3 2003/06/02 20:18:38 millert Exp $"; 34static char *rcsid = "$OpenBSD: memset.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $";
35#endif /* LIBC_SCCS and not lint */ 35#endif /* LIBC_SCCS and not lint */
36 36
37#include <string.h> 37#include <string.h>
38 38
39void * 39void *
40memset(dst, c, n) 40memset(void *dst, int c, size_t n)
41 void *dst;
42 register int c;
43 register size_t n;
44{ 41{
45 42
46 if (n != 0) { 43 if (n != 0) {
47 register char *d = dst; 44 char *d = dst;
48 45
49 do 46 do
50 *d++ = c; 47 *d++ = c;