~kris/9p

9hist

73ac58ff411b6e3b3868719c93d745d5a36f76da — David du Colombier 27 years ago d126254
Plan 9 from Bell Labs 1999-01-13
2 files changed, 5 insertions(+), 4 deletions(-)

M boot/settime.c
M pc/devrtc.c
M boot/settime.c => boot/settime.c +3 -2
@@ 99,9 99,10 @@ static	int	ldmsize[] =
 *  return the days/month for the given year
 */
static int *
yrsize(int yr)
yrsize(int y)
{
	if((yr % 4) == 0)

	if((y%4) == 0 && ((y%100) != 0 || (y%400) == 0))
		return ldmsize;
	else
		return dmsize;

M pc/devrtc.c => pc/devrtc.c +2 -2
@@ 319,9 319,9 @@ static	int	ldmsize[] =
 *  return the days/month for the given year
 */
static int*
yrsize(int yr)
yrsize(int y)
{
	if((yr % 4) == 0)
	if((y%4) == 0 && ((y%100) != 0 || (y%400) == 0))
		return ldmsize;
	else
		return dmsize;