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/437667b49941
branches:  trunk
changeset: 803584:437667b49941
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 2f42764f8dae -r 437667b49941 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