Ooops
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 9 Mar 2004 08:44:47 +0000 (08:44 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 9 Mar 2004 08:44:47 +0000 (08:44 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3257 4a8a32a2-be11-0410-ad9d-d568d2c75423

device/lib/time.c

index 576e7688747b1335a5525b4704b6d03192a31a69..11891004ee849e665aae3f665e205a4282ebef63 100755 (executable)
@@ -197,7 +197,7 @@ time_t mktime(struct tm *timeptr) {
       }
     }
 
-    seconds+= timeptr->(tm_mday-1)*60*60*24L;
+    seconds+= (timeptr->tm_mday-1)*60*60*24L;
     seconds+= timeptr->tm_hour*60*60;
     seconds+= timeptr->tm_min*60;
     seconds+= timeptr->tm_sec;