aboutsummaryrefslogtreecommitdiff
path: root/include/set-hooks.h
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-07-17 22:33:06 +0000
committerGreg McGary <greg@mcgary.org>2000-07-17 22:33:06 +0000
commit03df72bf736599aa4c2c8343b33bed3d2954afa8 (patch)
treef24ce1a51c6d0239d4e32840b06826ba9ac4a63c /include/set-hooks.h
parent14fa17ccec369589c6578af5b6a97b1353d73227 (diff)
downloadglibc-03df72bf736599aa4c2c8343b33bed3d2954afa8.zip
glibc-03df72bf736599aa4c2c8343b33bed3d2954afa8.tar.gz
glibc-03df72bf736599aa4c2c8343b33bed3d2954afa8.tar.bz2
* include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
* include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods. Qualify ptr as __unbouned. * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods. * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods. Qualify ptr as __unbouned.
Diffstat (limited to 'include/set-hooks.h')
-rw-r--r--include/set-hooks.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/set-hooks.h b/include/set-hooks.h
index f4d7246..709f4c0 100644
--- a/include/set-hooks.h
+++ b/include/set-hooks.h
@@ -40,12 +40,12 @@
/* Run all the functions hooked on the set called NAME.
Each function is called like this: `function ARGS'. */
-# define RUN_HOOK(NAME, ARGS) \
-do { \
- void (*const *ptr) (void); \
- for (ptr = symbol_set_first_element (NAME); \
- ! symbol_set_end_p (NAME, ptr); ++ptr) \
- (*(__##NAME##_hook_function_t *) *ptr) ARGS; \
+# define RUN_HOOK(NAME, ARGS) \
+do { \
+ void *const *__unbounded ptr; \
+ for (ptr = symbol_set_first_element (NAME); \
+ ! symbol_set_end_p (NAME, ptr); ++ptr) \
+ (*(__##NAME##_hook_function_t *) *ptr) ARGS; \
} while (0)
/* Define a hook variable with NAME and PROTO, and a function called RUNNER