Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net remove stray NSUNLOCK(); pointed out by Brian G...
details: https://anonhg.NetBSD.org/src/rev/f3e0cdb2167e
branches: trunk
changeset: 566919:f3e0cdb2167e
user: christos <christos%NetBSD.org@localhost>
date: Mon May 24 16:16:26 2004 +0000
description:
remove stray NSUNLOCK(); pointed out by Brian Ginsbach.
diffstat:
lib/libc/net/nsdispatch.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r bb7ec31002a4 -r f3e0cdb2167e lib/libc/net/nsdispatch.c
--- a/lib/libc/net/nsdispatch.c Mon May 24 14:01:10 2004 +0000
+++ b/lib/libc/net/nsdispatch.c Mon May 24 16:16:26 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nsdispatch.c,v 1.19 2004/05/23 16:53:22 christos Exp $ */
+/* $NetBSD: nsdispatch.c,v 1.20 2004/05/24 16:16:26 christos Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: nsdispatch.c,v 1.19 2004/05/23 16:53:22 christos Exp $");
+__RCSID("$NetBSD: nsdispatch.c,v 1.20 2004/05/24 16:16:26 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -244,10 +244,8 @@
new = (ns_dbt *)realloc(_nsmap,
(_nsmapsize + NSELEMSPERCHUNK) * sizeof(ns_dbt));
- if (new == NULL) {
- NSUNLOCK();
+ if (new == NULL)
return (-1);
- }
_nsmap = new;
}
memmove(&_nsmap[_nsmapsize++], dbt, sizeof(ns_dbt));
Home |
Main Index |
Thread Index |
Old Index