diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-19 21:53:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:15 -0500 |
commit | 4d5f58c2b945e7a2263ba42749f73c7ba72ab3c7 (patch) | |
tree | ee3f89f5d27a23d8c9e18383f7fc6d38f8b20554 /source3/lib/messages.c | |
parent | 01a7017d7b0e0cbc3b0923c43b7fe3f0b01aac0b (diff) | |
download | samba-4d5f58c2b945e7a2263ba42749f73c7ba72ab3c7.tar.gz samba-4d5f58c2b945e7a2263ba42749f73c7ba72ab3c7.tar.xz samba-4d5f58c2b945e7a2263ba42749f73c7ba72ab3c7.zip |
r23015: Make message_(de)register static to messages.c
(This used to be commit a8082a3c7c3d1e68c27fc3bf42f3d44402cc6f9f)
Diffstat (limited to 'source3/lib/messages.c')
-rw-r--r-- | source3/lib/messages.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 4cbdda61ee..667571a75d 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -71,6 +71,12 @@ static struct dispatch_fns { void *private_data; } *dispatch_fns; +static void message_register(int msg_type, + void (*fn)(int msg_type, struct server_id pid, + void *buf, size_t len, + void *private_data), + void *private_data); + /**************************************************************************** Free global objects. ****************************************************************************/ @@ -147,7 +153,7 @@ static BOOL message_init(struct messaging_context *msg_ctx) /* Register some debugging related messages */ register_msg_pool_usage(msg_ctx); - register_dmalloc_msgs(); + register_dmalloc_msgs(msg_ctx); debug_register_msgs(msg_ctx); return True; @@ -545,11 +551,11 @@ void message_dispatch(void) messages on an *odd* byte boundary. ****************************************************************************/ -void message_register(int msg_type, - void (*fn)(int msg_type, struct server_id pid, - void *buf, size_t len, - void *private_data), - void *private_data) +static void message_register(int msg_type, + void (*fn)(int msg_type, struct server_id pid, + void *buf, size_t len, + void *private_data), + void *private_data) { struct dispatch_fns *dfn; @@ -582,7 +588,7 @@ void message_register(int msg_type, De-register the function for a particular message type. ****************************************************************************/ -void message_deregister(int msg_type) +static void message_deregister(int msg_type) { struct dispatch_fns *dfn, *next; |