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
This commit is contained in:
Assar Westerlund
1997-08-05 20:53:07 +00:00
parent ba776dd760
commit ca44e29ff4

View File

@@ -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 */