[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] [ANNOUNCE:] leafnode-1.9.12

On Thu, Mar 30, 2000 at 08:41:07AM +0900, IKEDA Shigeru wrote:
> char    *tm_zone;       /* timezone abbreviation */
> char *timezone __P((int, int));

[joerg@RHME112 leafnode-1.9.12]$ grep timezone
   of *TIMER in the local timezone.  */
extern char *__tzname[2];       /* Current timezone names.  */
extern long int __timezone;     /* Seconds west of UTC.  */
extern long int timezone;

> The following patch could fix the problem?
> I have no machine running Linux, so I can't test on that platform.

Almost. Just has two more bugs in the same line...

> !     age = mktime( &timearray ) - (strstr( arg, "GMT" ) ? ltime->tm_gmtoff : 0);

!     age = mktime( &timearray ) + (strstr( arg, "GMT" ) ? 0 : ltime->tm_gmtoff);

Compiles and finally does what I intended. Sorry for the hassle.

Unfortunately I found one more problem: leafnode doesn't compile
under OSF/1 because it lacks snprintf(3). Seems there are still
some systems around which are not C99 compliant :-)


Fortune cookie of the day:
The important thing is not to stop questioning.

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list