Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/time Delint me harder.
details: https://anonhg.NetBSD.org/src/rev/a109b8897350
branches: trunk
changeset: 521376:a109b8897350
user: kleink <kleink%NetBSD.org@localhost>
date: Tue Jan 29 12:58:32 2002 +0000
description:
Delint me harder.
diffstat:
lib/libc/time/difftime.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 2b19289f9c31 -r a109b8897350 lib/libc/time/difftime.c
--- a/lib/libc/time/difftime.c Tue Jan 29 12:40:33 2002 +0000
+++ b/lib/libc/time/difftime.c Tue Jan 29 12:58:32 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: difftime.c,v 1.8 2002/01/29 12:40:33 kleink Exp $ */
+/* $NetBSD: difftime.c,v 1.9 2002/01/29 12:58:32 kleink Exp $ */
/*
** This file is in the public domain, so clarified as of
@@ -10,7 +10,7 @@
#if 0
static char elsieid[] = "@(#)difftime.c 7.9";
#else
-__RCSID("$NetBSD: difftime.c,v 1.8 2002/01/29 12:40:33 kleink Exp $");
+__RCSID("$NetBSD: difftime.c,v 1.9 2002/01/29 12:58:32 kleink Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -43,9 +43,15 @@
double d;
long_double ld;
- if (sizeof tt < sizeof d)
+#ifdef __lint__
+ /* LINTED unused warning bug */&tt;
+ /* LINTED unused warning bug */&d;
+ /* LINTED unused warning bug */&ld;
+#endif
+
+ if (/* LINTED constant */sizeof tt < sizeof d)
return (double) time1 - (double) time0;
- if (sizeof tt < sizeof ld)
+ if (/* LINTED constant */sizeof tt < sizeof ld)
return (long_double) time1 - (long_double) time0;
}
if (time1 < time0)
Home |
Main Index |
Thread Index |
Old Index