Killed a compiler warning on OSX
authoroes <oes@users.sourceforge.net>
Tue, 29 Apr 2003 13:33:51 +0000 (13:33 +0000)
committeroes <oes@users.sourceforge.net>
Tue, 29 Apr 2003 13:33:51 +0000 (13:33 +0000)
cgi.c

diff --git a/cgi.c b/cgi.c
index e0ff876..61f90cc 100644 (file)
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-const char cgi_rcs[] = "$Id: cgi.c,v 1.70.2.6 2003/03/12 01:26:25 david__schmidt Exp $";
+const char cgi_rcs[] = "$Id: cgi.c,v 1.70.2.7 2003/04/03 13:50:58 oes Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/Attic/cgi.c,v $
@@ -38,6 +38,11 @@ const char cgi_rcs[] = "$Id: cgi.c,v 1.70.2.6 2003/03/12 01:26:25 david__schmidt
  *
  * Revisions   :
  *    $Log: cgi.c,v $
+ *    Revision 1.70.2.7  2003/04/03 13:50:58  oes
+ *    - Don't call cgi_error_disabled ifndef FEATURE_CGI_EDIT_ACTIONS
+ *      (fixes bug #710056)
+ *    - Show toggle info only if we have it
+ *
  *    Revision 1.70.2.6  2003/03/12 01:26:25  david__schmidt
  *    Move declaration of struct tm dummy outside of a control block so it is
  *    accessible later on during snprintf in get_http_time.
@@ -1526,7 +1531,7 @@ void get_http_time(int time_offset, char *buf)
 
    struct tm *t;
    time_t current_time;
-#ifdef HAVE_GMTIME_R
+#if defined(HAVE_GMTIME_R) && !defined(OSX_DARWIN)
    /*
     * Declare dummy up here (instead of inside get/set gmt block) so it
     * doesn't go out of scope before it's potentially used in snprintf later.