Date: Mon, 25 Nov 2002 18:29:20 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 21512 for review Message-ID: <200211260229.gAQ2TKPg033840@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=21512 Change 21512 by peter@peter_ia64 on 2002/11/25 18:29:00 gah, forgot to back some stuff out of the last change. I had changed tm_year to 'long' to test the algorithms, which required changing tmcomp return value from int to long. Affected files ... .. //depot/projects/ia64/lib/libc/stdtime/localtime.c#8 edit Differences ... ==== //depot/projects/ia64/lib/libc/stdtime/localtime.c#8 (text+ko) ==== @@ -149,7 +149,7 @@ long offset, int * okayp); static void timesub(const time_t * timep, long offset, const struct state * sp, struct tm * tmp); -static long tmcomp(const struct tm * atmp, +static int tmcomp(const struct tm * atmp, const struct tm * btmp); static time_t transtime(time_t janfirst, int year, const struct rule * rulep, long offset); @@ -1380,12 +1380,12 @@ return increment_overflow(tensptr, tensdelta); } -static long +static int tmcomp(atmp, btmp) const struct tm * const atmp; const struct tm * const btmp; { - long result; + int result; if ((result = (atmp->tm_year - btmp->tm_year)) == 0 && (result = (atmp->tm_mon - btmp->tm_mon)) == 0 && @@ -1404,7 +1404,7 @@ int * const okayp; { const struct state * sp; - long dir; + int dir; int bits; int i, j ; int saved_seconds; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211260229.gAQ2TKPg033840>