aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-11-26 15:04:39 +0100
committerHarald Welte <laforge@gnumonks.org>2016-12-09 15:35:31 +0000
commit1cd50585e9c7c670c3df5e5bc729d97aaa612b39 (patch)
treecccde57b8ba351e4590edfc57cd92b02b7e84540 /openbsc/src/libbsc
parent4a7d0e79ccb9f12ace9f2ff24afbe80a63c88b84 (diff)
cfg_bts_si2quater_neigh_add(): Don't call strerror() on negative value
Change-Id: I1300eede3f22df812b7e83902327ce4cde21aa35 Fixes: Coverity CID 135185
Diffstat (limited to 'openbsc/src/libbsc')
-rw-r--r--openbsc/src/libbsc/bsc_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index b9519b4..e3ec8d9 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -2745,7 +2745,7 @@ DEFUN(cfg_bts_si2quater_neigh_add, cfg_bts_si2quater_neigh_add_cmd,
r = osmo_earfcn_add(e, arfcn, meas);
if (r < 0) {
- vty_out(vty, "Unable to add arfcn %u: %s%s", arfcn, strerror(r),
+ vty_out(vty, "Unable to add arfcn %u: %s%s", arfcn, strerror(-r),
VTY_NEWLINE);
return CMD_WARNING;
}