Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/time ++bool to bool=true to appease GCC 8. NFC



details:   https://anonhg.NetBSD.org/src/rev/debb2172903d
branches:  trunk
changeset: 353476:debb2172903d
user:      maya <maya%NetBSD.org@localhost>
date:      Tue May 09 02:30:49 2017 +0000

description:
++bool to bool=true to appease GCC 8. NFC

ok riastradh

diffstat:

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

diffs (27 lines):

diff -r 2790c67b42a6 -r debb2172903d lib/libc/time/localtime.c
--- a/lib/libc/time/localtime.c Tue May 09 02:04:38 2017 +0000
+++ b/lib/libc/time/localtime.c Tue May 09 02:30:49 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: localtime.c,v 1.106 2017/03/11 18:23:14 christos Exp $ */
+/*     $NetBSD: localtime.c,v 1.107 2017/05/09 02:30:49 maya Exp $     */
 
 /*
 ** This file is in the public domain, so clarified as of
@@ -10,7 +10,7 @@
 #if 0
 static char    elsieid[] = "@(#)localtime.c    8.17";
 #else
-__RCSID("$NetBSD: localtime.c,v 1.106 2017/03/11 18:23:14 christos Exp $");
+__RCSID("$NetBSD: localtime.c,v 1.107 2017/05/09 02:30:49 maya Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -1716,7 +1716,7 @@
                                                sp->lsis[i - 1].ls_trans + 1 &&
                                                sp->lsis[i].ls_corr ==
                                                sp->lsis[i - 1].ls_corr + 1) {
-                                                       ++hit;
+                                                       hit = true;
                                                        --i;
                                        }
                        }



Home | Main Index | Thread Index | Old Index