From owner-cvs-all Sun Aug 11 4:32: 9 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD01B37B400; Sun, 11 Aug 2002 04:32:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC73643E6E; Sun, 11 Aug 2002 04:32:02 -0700 (PDT) (envelope-from mux@FreeBSD.org) Received: from freefall.freebsd.org (mux@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7BBW2JU058057; Sun, 11 Aug 2002 04:32:02 -0700 (PDT) (envelope-from mux@freefall.freebsd.org) Received: (from mux@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7BBW2sU058056; Sun, 11 Aug 2002 04:32:02 -0700 (PDT) Message-Id: <200208111132.g7BBW2sU058056@freefall.freebsd.org> From: Maxime Henrion Date: Sun, 11 Aug 2002 04:32:02 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/nfsiod nfsiod.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mux 2002/08/11 04:32:02 PDT Modified files: sbin/nfsiod nfsiod.c Log: The kldload() system call doesn't return 0 when it succeeded, so compare the return value against -1 to see if it failed instead of simply doing if (kldload("nfs")). Revision Changes Path 1.14 +1 -1 src/sbin/nfsiod/nfsiod.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message