Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-compat]: src/sys/sys Use private-namespace variable ``__hooked'...



details:   https://anonhg.NetBSD.org/src/rev/3ca49b6175ba
branches:  pgoyette-compat
changeset: 830864:3ca49b6175ba
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Oct 12 10:28:29 2018 +0000

description:
Use private-namespace variable ``__hooked'' instead of ``hooked''

diffstat:

 sys/sys/module_hook.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r ff508a8b1d3e -r 3ca49b6175ba sys/sys/module_hook.h
--- a/sys/sys/module_hook.h     Fri Oct 12 04:12:06 2018 +0000
+++ b/sys/sys/module_hook.h     Fri Oct 12 10:28:29 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: module_hook.h,v 1.1.2.6 2018/10/04 02:24:26 pgoyette Exp $ */
+/* $NetBSD: module_hook.h,v 1.1.2.7 2018/10/12 10:28:29 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -173,18 +173,18 @@
 int                                                            \
 hook ## _ ## which ## _call decl                               \
 {                                                              \
-       bool hooked;                                            \
+       bool __hooked;                                          \
        int __hook_error, __hook_s;                             \
                                                                \
        __hook_s = pserialize_read_enter();                     \
-       hooked = hook.hooked;                                   \
-       if (hooked) {                                           \
+       __hooked = hook.hooked;                                 \
+       if (__hooked) {                                         \
                membar_consumer();                              \
                localcount_acquire(&hook.lc);                   \
        }                                                       \
        pserialize_read_exit(__hook_s);                         \
                                                                \
-       if (hooked) {                                           \
+       if (__hooked) {                                         \
                __hook_error = (*hook.which)args;               \
                localcount_release(&hook.lc, &hook.cv,          \
                    &hook.mtx);                                 \



Home | Main Index | Thread Index | Old Index