Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2014 15:35:35 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260484 - head/sbin/kldload
Message-ID:  <201401091535.s09FZZiX096979@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Jan  9 15:35:35 2014
New Revision: 260484
URL: http://svnweb.freebsd.org/changeset/base/260484

Log:
  Fix error counting

Modified:
  head/sbin/kldload/kldload.c

Modified: head/sbin/kldload/kldload.c
==============================================================================
--- head/sbin/kldload/kldload.c	Thu Jan  9 15:34:23 2014	(r260483)
+++ head/sbin/kldload/kldload.c	Thu Jan  9 15:35:35 2014	(r260484)
@@ -181,14 +181,13 @@ main(int argc, char** argv)
 						printf("%s is already "
 						    "loaded\n", argv[0]);
 				} else {
-					if (errno == EEXIST) {
+					if (errno == EEXIST)
 						warnx("can't load %s: module "
 						    "already loaded or "
 						    "in kernel", argv[0]);
-					} else {
+					else
 						warn("can't load %s", argv[0]);
-						errors++;
-					}
+					errors++;
 				}
 			} else {
 				if (verbose)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401091535.s09FZZiX096979>