OSSP CVS Repository

ossp - Check-in [310]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 310
Date: 2001-Jan-19 09:27:49 (local)
2001-Jan-19 08:27:49 (UTC)
User:rse
Branch:
Comment: As GCC complained: There is an ISO 9899:1990 (``ISO C'') function clock(3), so we have a symbol conflict here. Get rid of this by renaming our symbol.
Tickets:
Inspections:
Files:
ossp-pkg/petidomo/archive.c      1.5 -> 1.6     4 inserted, 4 deleted

ossp-pkg/petidomo/archive.c 1.5 -> 1.6

--- archive.c    2001/01/18 20:30:50     1.5
+++ archive.c    2001/01/19 08:27:49     1.6
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/archive.c,v $
-   $Revision: 1.5 $
+   $Revision: 1.6 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -38,7 +38,7 @@
     int           rc;
     struct tm *   timeptr;
     char *        date;
-    time_t        clock;
+    time_t        t;
 
     assert(MailStruct != NULL);
     assert(listname != NULL);
@@ -46,8 +46,8 @@
     /* Initialize internals. */
 
     ListConfig = getListConfig(listname);
-    clock = time(NULL);
-    timeptr = localtime(&clock);
+    t = time(NULL);
+    timeptr = localtime(&t);
     date = asctime(timeptr);
     rc = -1;
 

CVSTrac 2.0.1