rem: int i;
add: uint32 i;
context: cmos_to_secs(const cmos_time *cmos){	uint32 wholeYear;	uint32 time = 0;	int i;	wholeYear = bcd_to_int(cmos->century) * 100 + bcd_to_int(cmos->year);	// Add up the seconds from all years since 1970 that have elapsed.	for (i = BASE_YEAR; i < wholeYear; ++i) {		time += secs_this_year(i);	}	// Add up the seconds from all months passed this year.	for (i = 0; i < bcd_to_int(cmos->month) - 1 && i < 12; ++i)		time += secs_per_month[i];	// Add up the seconds from all days passed this month.	if (leap_year(wholeYear) && bcd_to_int(cmos->month) > 2)		time += SECONDS_DAY;	time += (bcd_to_int(cmos->day) - 1) * SECONDS_DAY;	time += bcd_to_int(cmos->hour) * 3600;	time += bcd_to_int(cmos->minute) * 60;	time += bcd_to_int(cmos->second);	return time;}