Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/modules/k_helper3 Adjust.
details: https://anonhg.NetBSD.org/src/rev/008c135c34a9
branches: trunk
changeset: 778847:008c135c34a9
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Apr 17 05:18:54 2012 +0000
description:
Adjust.
diffstat:
tests/modules/k_helper3/k_helper3.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r c014c1330177 -r 008c135c34a9 tests/modules/k_helper3/k_helper3.c
--- a/tests/modules/k_helper3/k_helper3.c Tue Apr 17 02:50:38 2012 +0000
+++ b/tests/modules/k_helper3/k_helper3.c Tue Apr 17 05:18:54 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: k_helper3.c,v 1.1 2012/04/13 07:05:32 jruoho Exp $ */
+/* $NetBSD: k_helper3.c,v 1.2 2012/04/17 05:18:54 jruoho Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: k_helper3.c,v 1.1 2012/04/13 07:05:32 jruoho Exp $");
+__RCSID("$NetBSD: k_helper3.c,v 1.2 2012/04/17 05:18:54 jruoho Exp $");
#include <sys/module.h>
@@ -82,10 +82,11 @@
errno = serrno = 0;
rv = modctl(MODCTL_LOAD, &ml);
- serrno = errno;
- if (rv != -1)
- (void)modctl(MODCTL_UNLOAD, filename);
+ if (rv != 0)
+ serrno = errno;
+
+ (void)modctl(MODCTL_UNLOAD, filename);
free(propsstr);
Home |
Main Index |
Thread Index |
Old Index