Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libperfuse Restore build with -DDEBUG, and avoid a spuri...
details: https://anonhg.NetBSD.org/src/rev/dc4d8bce1dcf
branches: trunk
changeset: 333442:dc4d8bce1dcf
user: manu <manu%NetBSD.org@localhost>
date: Tue Nov 04 09:17:31 2014 +0000
description:
Restore build with -DDEBUG, and avoid a spurious diagnostic error with -DDEBUG
diffstat:
lib/libperfuse/ops.c | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diffs (37 lines):
diff -r 66db838422c5 -r dc4d8bce1dcf lib/libperfuse/ops.c
--- a/lib/libperfuse/ops.c Tue Nov 04 09:14:42 2014 +0000
+++ b/lib/libperfuse/ops.c Tue Nov 04 09:17:31 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ops.c,v 1.79 2014/10/31 15:20:08 manu Exp $ */
+/* $NetBSD: ops.c,v 1.80 2014/11/04 09:17:31 manu Exp $ */
/*-
* Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -813,11 +813,6 @@
{
struct perfuse_cc_queue pcq;
struct perfuse_node_data *pnd;
-#ifdef PERFUSE_DEBUG
- struct perfuse_state *ps;
-
- ps = perfuse_getspecific(pu);
-#endif
pnd = PERFUSE_NODE_DATA(opc);
pcq.pcq_type = type;
@@ -2821,11 +2816,11 @@
if (opc == 0)
return 0;
+ pnd = PERFUSE_NODE_DATA(opc);
+ if (!(pnd->pnd_flags & (PND_OPEN|PND_REMOVED)))
+ return 0;
+
node_ref(opc);
- pnd = PERFUSE_NODE_DATA(opc);
-
- if (!(pnd->pnd_flags & (PND_OPEN|PND_REMOVED)))
- goto out;
/*
* Make sure all operation are finished
Home |
Main Index |
Thread Index |
Old Index