svn commit: trunk/busybox/coreutils
vodz at busybox.net
vodz at busybox.net
Mon Jan 30 13:47:20 UTC 2006
Author: vodz
Date: 2006-01-30 05:47:19 -0800 (Mon, 30 Jan 2006)
New Revision: 13709
Log:
removed warning "comparison between signed and unsigned".
Modified:
trunk/busybox/coreutils/cal.c
Changeset:
Modified: trunk/busybox/coreutils/cal.c
===================================================================
--- trunk/busybox/coreutils/cal.c 2006-01-30 13:41:53 UTC (rev 13708)
+++ trunk/busybox/coreutils/cal.c 2006-01-30 13:47:19 UTC (rev 13709)
@@ -231,11 +231,12 @@
memset(days, SPACE, MAXDAYS * sizeof(int));
if ((month == 9) && (year == 1752)) {
+ size_t oday = 0;
+
j_offset = julian * 244;
- i = 0;
do {
- days[i+2] = sep1752[i] + j_offset;
- } while (++i < sizeof(sep1752));
+ days[oday+2] = sep1752[oday] + j_offset;
+ } while (++oday < sizeof(sep1752));
return;
}
More information about the busybox-cvs
mailing list