summaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/sgsn_ctrl.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-05-02 16:44:43 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-04 13:35:13 +0000
commit50eb66996d4d68d32f6b1ee8c9adfc8046808266 (patch)
tree8247985a1979ff72f2aacebfb43bb2c1f41aa22b /openbsc/src/gprs/sgsn_ctrl.c
parent086067f0a13846590130379bfeffeb2962cd4708 (diff)
ctrl: remove boilerplate code
Define subscriber-list-active-v1 ctrl command as RO and remove unnecessary functions. Change-Id: I88fe905c22cf7563415d470b88cb43fca0d52a7f
Diffstat (limited to 'openbsc/src/gprs/sgsn_ctrl.c')
-rw-r--r--openbsc/src/gprs/sgsn_ctrl.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/openbsc/src/gprs/sgsn_ctrl.c b/openbsc/src/gprs/sgsn_ctrl.c
index ccf507672..31ac74f1f 100644
--- a/openbsc/src/gprs/sgsn_ctrl.c
+++ b/openbsc/src/gprs/sgsn_ctrl.c
@@ -30,17 +30,6 @@
extern vector ctrl_node_vec;
-static int verify_subscriber_list(struct ctrl_cmd *cmd, const char *v, void *d)
-{
- return 1;
-}
-
-static int set_subscriber_list(struct ctrl_cmd *cmd, void *d)
-{
- cmd->reply = "Get only attribute";
- return CTRL_CMD_ERROR;
-}
-
static int get_subscriber_list(struct ctrl_cmd *cmd, void *d)
{
struct sgsn_mm_ctx *mm;
@@ -64,7 +53,7 @@ static int get_subscriber_list(struct ctrl_cmd *cmd, void *d)
return CTRL_CMD_REPLY;
}
-CTRL_CMD_DEFINE(subscriber_list, "subscriber-list-active-v1");
+CTRL_CMD_DEFINE_RO(subscriber_list, "subscriber-list-active-v1");
int sgsn_ctrl_cmds_install(void)
{