-

- Lauri
>From 51668718ea11b1d41d508789f6a9d4ce71f0e109 Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Mon, 21 May 2012 19:51:24 +0300
Subject: [PATCH 04/13] cheetah: Fix symbol visibility. -3kb


Signed-off-by: Lauri Kasanen <[email protected]>
---
 plugins/cheetah/cheetah.c |    2 +-
 plugins/cheetah/cheetah.h |    4 ++++
 plugins/cheetah/cmd.h     |    3 +++
 plugins/cheetah/cutils.h  |    4 ++++
 plugins/cheetah/loop.c    |    1 +
 plugins/cheetah/loop.h    |    4 ++++
 6 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/plugins/cheetah/cheetah.c b/plugins/cheetah/cheetah.c
index 9ed4714..d2ff019 100644
--- a/plugins/cheetah/cheetah.c
+++ b/plugins/cheetah/cheetah.c
@@ -48,7 +48,7 @@ void mk_cheetah_welcome_msg()
     CHEETAH_FLUSH();
 }
 
-void mk_cheetah_config(char *path)
+static void mk_cheetah_config(char *path)
 {
     unsigned long len;
     char *listen = NULL;
diff --git a/plugins/cheetah/cheetah.h b/plugins/cheetah/cheetah.h
index e9c9235..c42289c 100644
--- a/plugins/cheetah/cheetah.h
+++ b/plugins/cheetah/cheetah.h
@@ -78,6 +78,8 @@
 #define LISTEN_STDIN 0
 #define LISTEN_SERVER 1
 
+#pragma GCC visibility push(hidden)
+
 int listen_mode;
 
 char *cheetah_server;
@@ -90,4 +92,6 @@ FILE *cheetah_output;
 void *mk_cheetah_init(void *args);
 void mk_cheetah_welcome_msg();
 
+#pragma GCC visibility pop
+
 #endif
diff --git a/plugins/cheetah/cmd.h b/plugins/cheetah/cmd.h
index 245a309..4d27b28 100644
--- a/plugins/cheetah/cmd.h
+++ b/plugins/cheetah/cmd.h
@@ -19,6 +19,8 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
  */
 
+#pragma GCC visibility push(hidden)
+
 time_t init_time;
 
 /* commands */
@@ -42,3 +44,4 @@ void mk_cheetah_cmd_help();
 void mk_cheetah_cmd_config();
 void mk_cheetah_cmd_status();
 
+#pragma GCC visibility pop
diff --git a/plugins/cheetah/cutils.h b/plugins/cheetah/cutils.h
index 353dac7..82e9282 100644
--- a/plugins/cheetah/cutils.h
+++ b/plugins/cheetah/cutils.h
@@ -27,8 +27,12 @@
 #define CHEETAH_WRITE(...) mk_cheetah_write(__VA_ARGS__);
 #define CHEETAH_FLUSH() fflush(cheetah_output);fflush(cheetah_input);
 
+#pragma GCC visibility push(hidden)
+
 void mk_cheetah_print_worker_memory_usage(pid_t pid);
 void mk_cheetah_print_running_user();
 int mk_cheetah_write(const char *format, ...);
 
+#pragma GCC visibility pop
+
 #endif
diff --git a/plugins/cheetah/loop.c b/plugins/cheetah/loop.c
index 9f40ca2..902b130 100644
--- a/plugins/cheetah/loop.c
+++ b/plugins/cheetah/loop.c
@@ -32,6 +32,7 @@
 #include "cheetah.h"
 #include "cutils.h"
 #include "cmd.h"
+#include "loop.h"
 
 void mk_cheetah_loop_stdin()
 {
diff --git a/plugins/cheetah/loop.h b/plugins/cheetah/loop.h
index d451c72..67aafb4 100644
--- a/plugins/cheetah/loop.h
+++ b/plugins/cheetah/loop.h
@@ -1,2 +1,6 @@
+#pragma GCC visibility push(hidden)
+
 void mk_cheetah_loop_stdin();
 void mk_cheetah_loop_server();
+
+#pragma GCC visibility pop
-- 
1.7.2.1

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to