dslinux/user/fwver fwver.c

amadeus dslinux_amadeus at user.in-berlin.de
Wed Aug 2 06:52:27 CEST 2006


Update of /cvsroot/dslinux/dslinux/user/fwver
In directory antilope:/tmp/cvs-serv19991/user/fwver

Modified Files:
	fwver.c 
Log Message:
Fix month-off-by-1 error. Patch by john.

Index: fwver.c
===================================================================
RCS file: /cvsroot/dslinux/dslinux/user/fwver/fwver.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- fwver.c	1 Jul 2006 16:57:23 -0000	1.8
+++ fwver.c	2 Aug 2006 04:52:25 -0000	1.9
@@ -59,7 +59,10 @@
 	day = tm->tm_mday;
 	month = tm->tm_mon;
 #endif
-	return ((day == tm->tm_mday) && (month == tm->tm_mon));
+        return ((day == tm->tm_mday) && (month-1 == tm->tm_mon));
+        /* month-1 because the month returned by the system is 0..11
+         * while the month in the firmware is 1..12 */
+ 
 }
 
 




More information about the dslinux-commit mailing list