View | Details | Raw Unified | Return to bug 87546
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	rtc
8
PORTNAME=	rtc
9
PORTVERSION=	2004.02.24.1
9
PORTVERSION=	2004.02.24.1
10
PORTREVISION=	5
10
PORTREVISION=	6
11
CATEGORIES=	emulators linux
11
CATEGORIES=	emulators linux
12
MASTER_SITES=	# none
12
MASTER_SITES=	# none
13
DISTFILES=	# none
13
DISTFILES=	# none
(-)files/rtc.c (-4 / +6 lines)
Lines 82-88 Link Here
82
	struct callout rtc_handle;
82
	struct callout rtc_handle;
83
	struct timespec lasttime;
83
	struct timespec lasttime;
84
	struct selinfo sip;
84
	struct selinfo sip;
85
	int woken;
85
	unsigned long woken;
86
	void *rtc_ident;
86
	void *rtc_ident;
87
	} var;
87
	} var;
88
};
88
};
Lines 338-348 Link Here
338
		tsleep(&sc->var.rtc_ident, PCATCH, "rtc rd", hz * 10);
338
		tsleep(&sc->var.rtc_ident, PCATCH, "rtc rd", hz * 10);
339
#if 0
339
#if 0
340
	if (sc->var.woken > 1)
340
	if (sc->var.woken > 1)
341
		printf("woken: %d\n", sc->var.woken);
341
		printf("woken: %lu\n", sc->var.woken);
342
#endif
342
#endif
343
343
344
	if (uio->uio_resid == sizeof(int)) {
344
	if (uio->uio_resid == sizeof(unsigned int)) {
345
		error = uiomove(&sc->var.woken, sizeof(int), uio);
345
		error = uiomove(&sc->var.woken, sizeof(unsigned int), uio);
346
	} else if (uio->uio_resid == sizeof(unsigned long)) {
347
		error = uiomove(&sc->var.woken, sizeof(unsigned long), uio);
346
	}
348
	}
347
	sc->var.woken = 0;
349
	sc->var.woken = 0;
348
	return error;
350
	return error;

Return to bug 87546