- - Lauri
>From edebce536e680a8fe029cc6e59589fd0eead80d9 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Mon, 21 May 2012 20:03:45 +0300 Subject: [PATCH 09/13] mandril: Fix symbol visibility. -0.5kb
Signed-off-by: Lauri Kasanen <[email protected]> --- plugins/mandril/mandril.c | 8 ++++---- plugins/mandril/mandril.h | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/mandril/mandril.c b/plugins/mandril/mandril.c index 249bb69..6f4a149 100644 --- a/plugins/mandril/mandril.c +++ b/plugins/mandril/mandril.c @@ -38,10 +38,10 @@ MONKEY_PLUGIN("mandril", /* shortname */ VERSION, /* version */ MK_PLUGIN_STAGE_10 | MK_PLUGIN_STAGE_20); /* hooks */ -struct mk_config *conf; +static struct mk_config *conf; /* Read database configuration parameters */ -int mk_security_conf(char *confdir) +static int mk_security_conf(char *confdir) { int n; int ret = 0; @@ -150,7 +150,7 @@ int mk_security_conf(char *confdir) return ret; } -int mk_security_check_ip(int socket) +static int mk_security_check_ip(int socket) { int network; struct mk_secure_ip_t *entry; @@ -188,7 +188,7 @@ int mk_security_check_ip(int socket) } /* Check if the incoming URL is restricted for some rule */ -int mk_security_check_url(int socket, mk_pointer url) +static int mk_security_check_url(int socket, mk_pointer url) { int n; struct mk_list *head; diff --git a/plugins/mandril/mandril.h b/plugins/mandril/mandril.h index 311f4c0..d5e4d2e 100644 --- a/plugins/mandril/mandril.h +++ b/plugins/mandril/mandril.h @@ -24,6 +24,8 @@ #ifndef MK_SECURITY_H #define MK_SECURITY_H +#pragma GCC visibility push(hidden) + struct mk_secure_ip_t { struct in_addr ip; @@ -49,4 +51,6 @@ struct mk_secure_url_t struct mk_list mk_secure_ip; struct mk_list mk_secure_url; +#pragma GCC visibility pop + #endif -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
