[commits] [batctl] next: batctl: Mark all local functions as static (aad6168)

postmaster at open-mesh.org postmaster at open-mesh.org
Wed Sep 11 12:58:02 CEST 2013


Repository : ssh://git@open-mesh.org/batctl

On branch  : next

>---------------------------------------------------------------

commit aad616848b2ed00ae71c44cda13bef7fb1a03d14
Author: Sven Eckelmann <sven at narfation.org>
Date:   Tue Sep 10 23:11:55 2013 +0200

    batctl: Mark all local functions as static
    
    Signed-off-by: Sven Eckelmann <sven at narfation.org>
    Signed-off-by: Marek Lindner <mareklindner at neomailbox.ch>


>---------------------------------------------------------------

aad616848b2ed00ae71c44cda13bef7fb1a03d14
 debug.c      |    2 +-
 main.c       |    2 +-
 ping.c       |    4 ++--
 traceroute.c |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/debug.c b/debug.c
index c879603..1e6807f 100644
--- a/debug.c
+++ b/debug.c
@@ -84,7 +84,7 @@ const struct debug_table_data batctl_debug_tables[BATCTL_TABLE_NUM] = {
 	},
 };
 
-void debug_table_usage(int debug_table)
+static void debug_table_usage(int debug_table)
 {
 	fprintf(stderr, "Usage: batctl [options] %s|%s [parameters]\n",
 	       batctl_debug_tables[debug_table].opt_long, batctl_debug_tables[debug_table].opt_short);
diff --git a/main.c b/main.c
index 7d667d3..222a58f 100644
--- a/main.c
+++ b/main.c
@@ -44,7 +44,7 @@
 char mesh_dfl_iface[] = "bat0";
 char module_ver_path[] = "/sys/module/batman_adv/version";
 
-void print_usage(void)
+static void print_usage(void)
 {
 	int i, opt_indent;
 
diff --git a/ping.c b/ping.c
index 5d6b7e9..162458c 100644
--- a/ping.c
+++ b/ping.c
@@ -42,7 +42,7 @@
 char is_aborted = 0;
 
 
-void ping_usage(void)
+static void ping_usage(void)
 {
 	fprintf(stderr, "Usage: batctl [options] ping [parameters] mac|bat-host|host_name|IPv4_address \n");
 	fprintf(stderr, "parameters:\n");
@@ -54,7 +54,7 @@ void ping_usage(void)
 	fprintf(stderr, " \t -T don't try to translate mac to originator address\n");
 }
 
-void sig_handler(int sig)
+static void sig_handler(int sig)
 {
 	switch (sig) {
 	case SIGINT:
diff --git a/traceroute.c b/traceroute.c
index 38d3796..9820a20 100644
--- a/traceroute.c
+++ b/traceroute.c
@@ -41,7 +41,7 @@
 #define NUM_PACKETS 3
 
 
-void traceroute_usage(void)
+static void traceroute_usage(void)
 {
 	fprintf(stderr, "Usage: batctl [options] traceroute [parameters] mac|bat-host|host_name|IPv4_address \n");
 	fprintf(stderr, "parameters:\n");



More information about the commits mailing list