aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-12-20 17:08:22 +0100
committerHarald Welte <laforge@netfilter.org>2009-12-20 17:08:22 +0100
commita4e2d04b35095d059218ab05ffcd5b69e18edf70 (patch)
tree1e7d1595c11869a3ce8e98a3de00d2539312c612
parent9fb1f1065a8dc5b0fd2cbaad9d438d57f1dd7ac2 (diff)
Fix some compiler warnings regarding missing const in rest_octets.c
-rw-r--r--openbsc/src/rest_octets.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/rest_octets.c b/openbsc/src/rest_octets.c
index 6efd47515..6226203ec 100644
--- a/openbsc/src/rest_octets.c
+++ b/openbsc/src/rest_octets.c
@@ -291,7 +291,8 @@ static int encode_drx_timer(unsigned int drx)
<BSS_PAGING_COORDINATION: bit >
<spare bit > ** ;
*/
-static int append_gprs_cell_opt(struct bitvec *bv, struct gprs_cell_options *gco)
+static int append_gprs_cell_opt(struct bitvec *bv,
+ const struct gprs_cell_options *gco)
{
int t3192, drx_timer_max;
@@ -323,7 +324,7 @@ static int append_gprs_cell_opt(struct bitvec *bv, struct gprs_cell_options *gco
}
static void append_gprs_pwr_ctrl_pars(struct bitvec *bv,
- struct gprs_power_ctrl_pars *pcp)
+ const struct gprs_power_ctrl_pars *pcp)
{
bitvec_set_uint(bv, pcp->alpha, 4);
bitvec_set_uint(bv, pcp->t_avg_w, 5);