diff options
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/fputwc.c | 5 | ||||
-rw-r--r-- | lib/libc/stdio/sprintf.c | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/stdio/fputwc.c b/lib/libc/stdio/fputwc.c index fa3f3704445..829c22c48dd 100644 --- a/lib/libc/stdio/fputwc.c +++ b/lib/libc/stdio/fputwc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fputwc.c,v 1.5 2015/08/31 02:53:57 guenther Exp $ */ +/* $OpenBSD: fputwc.c,v 1.6 2015/10/01 02:32:07 guenther Exp $ */ /* $NetBSD: fputwc.c,v 1.3 2003/03/07 07:11:37 tshiozak Exp $ */ /*- @@ -46,8 +46,7 @@ __fputwc_unlock(wchar_t wc, FILE *fp) struct __suio uio; struct __siov iov; - /* LINTED we don't play with buf */ - iov.iov_base = (void *)buf; + iov.iov_base = buf; uio.uio_iov = &iov; uio.uio_iovcnt = 1; diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c index 0ca6b055bad..51ddf95f947 100644 --- a/lib/libc/stdio/sprintf.c +++ b/lib/libc/stdio/sprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sprintf.c,v 1.17 2011/05/30 18:48:33 martynas Exp $ */ +/* $OpenBSD: sprintf.c,v 1.18 2015/10/01 02:32:07 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -42,7 +42,6 @@ __warn_references(sprintf, "warning: sprintf() is often misused, please use snprintf()"); #endif -/* PRINTFLIKE2 */ int sprintf(char *str, const char *fmt, ...) { |