aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sysinstall/nfs.c')
-rw-r--r--usr.sbin/sysinstall/nfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/nfs.c b/usr.sbin/sysinstall/nfs.c
index f9a557239a92..2f096377b6fe 100644
--- a/usr.sbin/sysinstall/nfs.c
+++ b/usr.sbin/sysinstall/nfs.c
@@ -53,7 +53,7 @@ mediaInitNFS(Device *dev)
if (NFSMounted)
return TRUE;
- if (netDevice && !netDevice->init(netDevice))
+ if (!DEVICE_INIT(netDevice))
return FALSE;
if (Mkdir(mountpoint))
@@ -65,7 +65,7 @@ mediaInitNFS(Device *dev)
variable_get(VAR_NFS_SECURE) ? "-P" : "", dev->name, mountpoint)) {
msgConfirm("Error mounting %s on %s: %s.", dev->name, mountpoint, strerror(errno));
if (netDevice)
- netDevice->shutdown(netDevice);
+ DEVICE_SHUTDOWN(netDevice);
restorescr(w);
return FALSE;
}