aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-02-22 10:03:56 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-04-17 14:34:26 +0200
commitd38cf50d0a7bdaa1bc8944630129b3fe92a0f799 (patch)
tree90163e17f083c98bcefda041c2d50c832991ee0e
parentb2b291d3efea54a60c2e5c50f8ac34a2f12125cd (diff)
ctrl: Make the commands static to not pollute the namespace
We do not need to access these commands from another compilation unit and can just make it static.
-rw-r--r--openbsc/include/openbsc/control_cmd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/include/openbsc/control_cmd.h b/openbsc/include/openbsc/control_cmd.h
index ba18ad8f5..d6292be42 100644
--- a/openbsc/include/openbsc/control_cmd.h
+++ b/openbsc/include/openbsc/control_cmd.h
@@ -112,7 +112,7 @@ static int verify_##cmdname(struct ctrl_cmd *cmd, const char *value, void *_data
} \
return -1; \
} \
-struct ctrl_cmd_element cmd_##cmdname = { \
+static struct ctrl_cmd_element cmd_##cmdname = { \
.name = cmdstr, \
.param = NULL, \
.get = &get_##cmdname, \
@@ -137,7 +137,7 @@ static int set_##cmdname(struct ctrl_cmd *cmd, void *_data) \
bsc_replace_string(cmd->node, &data->element, cmd->value); \
return get_##cmdname(cmd, _data); \
} \
-struct ctrl_cmd_element cmd_##cmdname = { \
+static struct ctrl_cmd_element cmd_##cmdname = { \
.name = cmdstr, \
.param = NULL, \
.get = &get_##cmdname, \
@@ -149,7 +149,7 @@ struct ctrl_cmd_element cmd_##cmdname = { \
static int get_##cmdname(struct ctrl_cmd *cmd, void *data); \
static int set_##cmdname(struct ctrl_cmd *cmd, void *data); \
static int verify_##cmdname(struct ctrl_cmd *cmd, const char *value, void *data); \
-struct ctrl_cmd_element cmd_##cmdname = { \
+static struct ctrl_cmd_element cmd_##cmdname = { \
.name = cmdstr, \
.param = NULL, \
.get = &get_##cmdname, \