aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-11-07 14:02:02 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-11-07 14:02:02 +0100
commit187871e2ca2d422c0d9c526058eae4fbde77040c (patch)
treec429f9d5e3ba6b142dae9ac09c5d6f19367cb6a6 /src
parentb10d74d8213fd21143b262288f69b45ef837c1c1 (diff)
sysmobts-vty: Fix compiler warnings about the clock value
The first one just sets the val to 0xffff, the second converted the value to integer twice. sysmobts_vty.c: In function ‘cfg_trx_clkcal_def’: sysmobts_vty.c:109:15: warning: unused variable ‘clkcal’ [-Wunused-variable] sysmobts_vty.c: In function ‘cfg_trx_clkcal’: sysmobts_vty.c:122:15: warning: unused variable ‘clkcal’ [-Wunused-variable]
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bts-sysmo/sysmobts_vty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/osmo-bts-sysmo/sysmobts_vty.c b/src/osmo-bts-sysmo/sysmobts_vty.c
index 93dd024b..51db434d 100644
--- a/src/osmo-bts-sysmo/sysmobts_vty.c
+++ b/src/osmo-bts-sysmo/sysmobts_vty.c
@@ -106,7 +106,6 @@ DEFUN(cfg_trx_clkcal_def, cfg_trx_clkcal_def_cmd,
"clock-calibration default",
"Set the clock calibration value\n" "Default Clock DAC value\n")
{
- unsigned int clkcal = atoi(argv[0]);
struct gsm_bts_trx *trx = vty->index;
struct femtol1_hdl *fl1h = trx_femtol1_hdl(trx);
@@ -123,7 +122,7 @@ DEFUN(cfg_trx_clkcal, cfg_trx_clkcal_cmd,
struct gsm_bts_trx *trx = vty->index;
struct femtol1_hdl *fl1h = trx_femtol1_hdl(trx);
- fl1h->clk_cal = atoi(argv[0]) & 0xfff;
+ fl1h->clk_cal = clkcal & 0xfff;
return CMD_SUCCESS;
}