Module Name: src
Committed By: christos
Date: Tue Jan 10 17:46:47 UTC 2017
Modified Files:
src/lib/libc/gen: sysctl.c
Log Message:
simplify cast.
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/lib/libc/gen/sysctl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/sysctl.c
diff -u src/lib/libc/gen/sysctl.c:1.35 src/lib/libc/gen/sysctl.c:1.36
--- src/lib/libc/gen/sysctl.c:1.35 Thu Feb 5 11:05:20 2015
+++ src/lib/libc/gen/sysctl.c Tue Jan 10 12:46:47 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.c,v 1.35 2015/02/05 16:05:20 christos Exp $ */
+/* $NetBSD: sysctl.c,v 1.36 2017/01/10 17:46:47 christos Exp $ */
/*-
* Copyright (c) 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)sysctl.c 8.2 (Berkeley) 1/4/94";
#else
-__RCSID("$NetBSD: sysctl.c,v 1.35 2015/02/05 16:05:20 christos Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.36 2017/01/10 17:46:47 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -313,7 +313,7 @@ user_sysctl(const int *name, unsigned in
if (d2 != NULL)
memcpy(d2, d1, d);
sz += d;
- d2 = (struct sysctldesc *)(void *)((char *)d2 + d);
+ d2 = (void *)((char *)(void *)d2 + d);
if (node != NULL)
break;
}