summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/getw.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/getw.c')
-rw-r--r--lib/libc/stdio/getw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/getw.c b/lib/libc/stdio/getw.c
index a6688be7c74..37adb6d0ff4 100644
--- a/lib/libc/stdio/getw.c
+++ b/lib/libc/stdio/getw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getw.c,v 1.6 2015/08/31 02:53:57 guenther Exp $ */
+/* $OpenBSD: getw.c,v 1.7 2016/09/21 04:38:56 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -38,6 +38,6 @@ getw(FILE *fp)
{
int x;
- return (fread((void *)&x, sizeof(x), 1, fp) == 1 ? x : EOF);
+ return (fread(&x, sizeof(x), 1, fp) == 1 ? x : EOF);
}
DEF_WEAK(getw);