Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rpc.statd db->seq() returns 0 for success and 1 for...
details: https://anonhg.NetBSD.org/src/rev/aeaee0b47a95
branches: trunk
changeset: 487365:aeaee0b47a95
user: bouyer <bouyer%NetBSD.org@localhost>
date: Tue Jun 06 18:17:07 2000 +0000
description:
db->seq() returns 0 for success and 1 for failure, not the opposite.
walk_db() was silently failing because of this.
diffstat:
usr.sbin/rpc.statd/statd.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r abfe60960e1a -r aeaee0b47a95 usr.sbin/rpc.statd/statd.c
--- a/usr.sbin/rpc.statd/statd.c Tue Jun 06 18:08:51 2000 +0000
+++ b/usr.sbin/rpc.statd/statd.c Tue Jun 06 18:17:07 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: statd.c,v 1.14 1999/06/10 05:53:51 scottr Exp $ */
+/* $NetBSD: statd.c,v 1.15 2000/06/06 18:17:07 bouyer Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: statd.c,v 1.14 1999/06/10 05:53:51 scottr Exp $");
+__RCSID("$NetBSD: statd.c,v 1.15 2000/06/06 18:17:07 bouyer Exp $");
#endif
/* main() function for status monitor daemon. Some of the code in this */
@@ -362,11 +362,11 @@
switch ((*db->seq)(db, &key, &data, R_NEXT)) {
case -1:
goto bad;
- case 1:
+ case 0:
if (walk_one(fun, &key, &data, ptr) == -1)
return -1;
break;
- case 0:
+ case 1:
return 0;
default:
abort();
Home |
Main Index |
Thread Index |
Old Index