From 0ba8565c8621756a6676953ecbb84fb27adb56ac Mon Sep 17 00:00:00 2001 From: pk Date: Sat, 4 May 1996 19:36:01 +0000 Subject: [PATCH] mountroot: return error code to caller, not -1. --- sys/arch/sparc/stand/net.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc/stand/net.c b/sys/arch/sparc/stand/net.c index f70c18347939..e67b22ac6f4d 100644 --- a/sys/arch/sparc/stand/net.c +++ b/sys/arch/sparc/stand/net.c @@ -1,4 +1,4 @@ -/* $NetBSD: net.c,v 1.2 1995/09/18 21:31:46 pk Exp $ */ +/* $NetBSD: net.c,v 1.3 1996/05/04 19:36:01 pk Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross @@ -153,5 +153,7 @@ net_mountroot() printf("root addr=%s path=%s\n", inet_ntoa(rootip), rootpath); /* Get the NFS file handle (mount). */ - return nfs_mount(netdev_sock, rootip, rootpath); + if (nfs_mount(netdev_sock, rootip, rootpath) != 0) + return (errno); + return 0; }