From ca44e29ff4e65ee1984397832926563c555b2bd9 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Tue, 5 Aug 1997 20:53:07 +0000 Subject: [PATCH] made some variables unsigned in a stupid attempt to cut down on the number of warnings. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2703 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/timegm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/asn1/timegm.c b/lib/asn1/timegm.c index c74437514..16bf6af15 100644 --- a/lib/asn1/timegm.c +++ b/lib/asn1/timegm.c @@ -51,11 +51,11 @@ is_leap(unsigned y) time_t timegm (struct tm *tm) { - static const int ndays[2][12] ={ + static const unsigned ndays[2][12] ={ {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}}; time_t res = 0; - int i; + unsigned i; for (i = 70; i < tm->tm_year; ++i) res += is_leap(i) ? 366 : 365; @@ -72,4 +72,4 @@ timegm (struct tm *tm) return res; } -#endif +#endif /* HAVE_TIMEGM */