summaryrefslogtreecommitdiff
path: root/source/lib/messages.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-05-19 21:53:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:15 -0500
commita8082a3c7c3d1e68c27fc3bf42f3d44402cc6f9f (patch)
tree2f3fe59543ff4c053b94266b9b04aa1a44e29f3e /source/lib/messages.c
parentfa18fc25a50cf13c687ae88e7e5e2dda1120e017 (diff)
downloadsamba-a8082a3c7c3d1e68c27fc3bf42f3d44402cc6f9f.tar.gz
r23015: Make message_(de)register static to messages.c
Diffstat (limited to 'source/lib/messages.c')
-rw-r--r--source/lib/messages.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/source/lib/messages.c b/source/lib/messages.c
index 4cbdda61ee9..667571a75d8 100644
--- a/source/lib/messages.c
+++ b/source/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;