Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen simplify cast.



details:   https://anonhg.NetBSD.org/src/rev/543bbf66dadf
branches:  trunk
changeset: 820492:543bbf66dadf
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 10 17:46:47 2017 +0000

description:
simplify cast.

diffstat:

 lib/libc/gen/sysctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bd9f6f17fca9 -r 543bbf66dadf lib/libc/gen/sysctl.c
--- a/lib/libc/gen/sysctl.c     Tue Jan 10 17:46:26 2017 +0000
+++ b/lib/libc/gen/sysctl.c     Tue Jan 10 17:46:47 2017 +0000
@@ -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 @@
                        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;
                }



Home | Main Index | Thread Index | Old Index