Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libkvm Return error on failure instead of hiding it and ...
details: https://anonhg.NetBSD.org/src/rev/bab472d57895
branches: trunk
changeset: 759056:bab472d57895
user: dholland <dholland%NetBSD.org@localhost>
date: Fri Nov 26 22:01:53 2010 +0000
description:
Return error on failure instead of hiding it and always returning zero.
>From Henning Petersen in PR 44152.
diffstat:
lib/libkvm/kvm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 49be9699b836 -r bab472d57895 lib/libkvm/kvm.c
--- a/lib/libkvm/kvm.c Fri Nov 26 21:59:49 2010 +0000
+++ b/lib/libkvm/kvm.c Fri Nov 26 22:01:53 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kvm.c,v 1.96 2010/10/23 14:34:12 stacktic Exp $ */
+/* $NetBSD: kvm.c,v 1.97 2010/11/26 22:01:53 dholland Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#else
-__RCSID("$NetBSD: kvm.c,v 1.96 2010/10/23 14:34:12 stacktic Exp $");
+__RCSID("$NetBSD: kvm.c,v 1.97 2010/11/26 22:01:53 dholland Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -759,7 +759,7 @@
free(kd->iobuf);
free(kd);
- return (0);
+ return (error);
}
int
Home |
Main Index |
Thread Index |
Old Index