httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sutton <>
Subject irix compile warning
Date Thu, 28 Nov 1996 10:38:00 GMT
Irix doesn't like this line bit of get_gmtoff() in util.c:

  #if !defined(HAS_GMTOFF)
    struct tm gmt = *gmtime(&tt);

(the warning is "Warning 851: util.c, line 109: constant initializer
expression is invalid (refers to automatic variables).") 

Wouldn't it be better to declare gmt as a (struct tm *) instead of (struct
tm) anyway? That is how the localtime is obtained in the same function: 

  struct tm *t = localtime(&tt);

UK Web Ltd

View raw message