summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-11-26 15:06:37 +0100
committerHarald Welte <laforge@gnumonks.org>2016-11-26 17:10:29 +0100
commitfaab54200d13bc1a0f1f1618650a21e53ffaaea7 (patch)
tree5d8901c18c76a13cadbc7a679daaefeb40dd7b5d
parentc5c3a176f0ef275b19a2b00d7de405b27569f1c9 (diff)
bsc_vty: Fix missing break statements in switch()
Change-Id: Ifd48e8d56c845603d320748144b4d7c3c24022a0 Fixes: Coverity CID 135188 Fixes: Coverity CID 135190
-rw-r--r--openbsc/src/libbsc/bsc_vty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index 007659199..9da8a70d0 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -3049,9 +3049,11 @@ DEFUN(cfg_bts_si2quater_uarfcn_add, cfg_bts_si2quater_uarfcn_add_cmd,
case -ENOMEM:
vty_out(vty, "Unable to add arfcn: max number of UARFCNs (%u) "
"reached%s", MAX_EARFCN_LIST, VTY_NEWLINE);
+ return CMD_WARNING;
case -ENOSPC:
vty_out(vty, "Warning: not enough space in si2quater for a "
"given arfcn%s", VTY_NEWLINE);
+ return CMD_WARNING;
case -EADDRINUSE:
vty_out(vty, "Unable to add arfcn: (%u, %u) is already added%s",
arfcn, scramble, VTY_NEWLINE);