diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-06-19 22:12:08 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-06-19 22:12:08 +0000 |
commit | 3957ca90a5622f6255ef6db322a41f7ffdfe46f4 (patch) | |
tree | 185c77bcab59cd8e974a1faf6ffe84dfa1df6509 /lib/libc/string/wmemset.c | |
parent | 2e5c48261179adc15f565023a7520fd314ac0588 (diff) |
K&R -> ANSI
APIWARN
okay millert@, otto@
Diffstat (limited to 'lib/libc/string/wmemset.c')
-rw-r--r-- | lib/libc/string/wmemset.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/libc/string/wmemset.c b/lib/libc/string/wmemset.c index abcbe44c466..9db63f05da9 100644 --- a/lib/libc/string/wmemset.c +++ b/lib/libc/string/wmemset.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wmemset.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ +/* $OpenBSD: wmemset.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ /* $NetBSD: wmemset.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ /*- @@ -30,21 +30,18 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: wmemset.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; +static char *rcsid = "$OpenBSD: wmemset.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; #endif /* LIBC_SCCS and not lint */ #include <wchar.h> wchar_t * -wmemset(s, c, n) - wchar_t *s; - wchar_t c; - size_t n; +wmemset(wchar_t *s, wchar_t c, size_t n) { size_t i; wchar_t *p; - p = (wchar_t *)s; + p = s; for (i = 0; i < n; i++) { *p = c; p++; |