aboutsummaryrefslogtreecommitdiff
path: root/emulators/rtc/files/rtc.c
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-22 11:08:22 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-22 11:08:22 +0000
commit48af3464adb0f4e1d7572dca0420f509e588b497 (patch)
tree57812c619c3fedc1b9ac72451edd09303450322f /emulators/rtc/files/rtc.c
parent1ce4cbb7e58b8b51ff71da7be76cc108cfa4c6af (diff)
downloadports-48af3464adb0f4e1d7572dca0420f509e588b497.tar.gz
ports-48af3464adb0f4e1d7572dca0420f509e588b497.zip
Notes
Diffstat (limited to 'emulators/rtc/files/rtc.c')
-rw-r--r--emulators/rtc/files/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emulators/rtc/files/rtc.c b/emulators/rtc/files/rtc.c
index 95681ce5bdc0..ff6899e3251b 100644
--- a/emulators/rtc/files/rtc.c
+++ b/emulators/rtc/files/rtc.c
@@ -115,7 +115,7 @@ rtc_attach(dev_t dev)
struct rtc_softc *sc;
int unit;
- unit = lminor(dev);
+ unit = dev2unit(dev);
DLog(Lenter, "%d %p", unit, dev);
if (dev->si_drv1) {
DLog(Lexit, "old %p, %p", dev, dev->si_drv1);