Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp widen the type to avoid gcc warning about s...
details: https://anonhg.NetBSD.org/src/rev/71a96204c0ee
branches: trunk
changeset: 768465:71a96204c0ee
user: christos <christos%NetBSD.org@localhost>
date: Wed Aug 17 09:32:55 2011 +0000
description:
widen the type to avoid gcc warning about shifting too much.
diffstat:
external/bsd/ntp/dist/lib/isc/unix/time.c | 4 ++--
external/bsd/ntp/lib/libiscntp/Makefile | 7 +------
2 files changed, 3 insertions(+), 8 deletions(-)
diffs (36 lines):
diff -r b39f1fa91dda -r 71a96204c0ee external/bsd/ntp/dist/lib/isc/unix/time.c
--- a/external/bsd/ntp/dist/lib/isc/unix/time.c Wed Aug 17 09:30:13 2011 +0000
+++ b/external/bsd/ntp/dist/lib/isc/unix/time.c Wed Aug 17 09:32:55 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: time.c,v 1.1.1.1 2009/12/13 16:54:32 kardel Exp $ */
+/* $NetBSD: time.c,v 1.2 2011/08/17 09:32:55 christos Exp $ */
/*
* Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
@@ -373,7 +373,7 @@
(time_t)0.5 != 0.5 && /* Not a floating point type. */
(i = (time_t)-1) != 4294967295u && /* Is signed. */
(seconds &
- (1U << (sizeof(time_t) * CHAR_BIT - 1))) != 0U) { /* Negative. */
+ (1ULL << (sizeof(time_t) * CHAR_BIT - 1))) != 0ULL) { /* Negative. */
/*
* This UNUSED() is here to shut up the IRIX compiler:
* variable "i" was set but never used
diff -r b39f1fa91dda -r 71a96204c0ee external/bsd/ntp/lib/libiscntp/Makefile
--- a/external/bsd/ntp/lib/libiscntp/Makefile Wed Aug 17 09:30:13 2011 +0000
+++ b/external/bsd/ntp/lib/libiscntp/Makefile Wed Aug 17 09:32:55 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2011/06/22 02:49:42 mrg Exp $
+# $NetBSD: Makefile,v 1.3 2011/08/17 09:32:55 christos Exp $
LIBISPRIVATE=yes
@@ -42,8 +42,3 @@
sockaddr.c
.include <bsd.lib.mk>
-
-# XXX
-.if ${HAVE_GCC} == 45
-COPTS.time.c+= -Wno-error
-.endif
Home |
Main Index |
Thread Index |
Old Index