diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-23 20:59:55 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-23 20:59:55 +0800 |
commit | d92f9aff809bff7507a20ee3473f328887456ebb (patch) | |
tree | d386f0d35700c595e9c080a1f44ec5414213c2cd /openbsc/src/debug.c | |
parent | 972c1f33b9633cde2e238c23c287fde894d728fd (diff) |
debug: Make GPRS params non-const to avoid compiler warning
Make log_set_nsvc_filter, log_set_bvc_filter take a non-const
parameter as we are going to assign it to a non-const pointer.
Diffstat (limited to 'openbsc/src/debug.c')
-rw-r--r-- | openbsc/src/debug.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/openbsc/src/debug.c b/openbsc/src/debug.c index 2a67398b4..512935a20 100644 --- a/openbsc/src/debug.c +++ b/openbsc/src/debug.c @@ -222,8 +222,7 @@ void log_set_imsi_filter(struct log_target *target, const char *imsi) } } -void log_set_nsvc_filter(struct log_target *target, - const struct gprs_nsvc *nsvc) +void log_set_nsvc_filter(struct log_target *target, struct gprs_nsvc *nsvc) { if (nsvc) { target->filter_map |= (1 << FLT_NSVC); @@ -234,8 +233,7 @@ void log_set_nsvc_filter(struct log_target *target, } } -void log_set_bvc_filter(struct log_target *target, - const struct bssgp_bvc_ctx *bctx) +void log_set_bvc_filter(struct log_target *target, struct bssgp_bvc_ctx *bctx) { if (bctx) { target->filter_map |= (1 << FLT_BVC); |