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.
This commit is contained in:
parent
972c1f33b9
commit
d92f9aff80
|
@ -63,9 +63,9 @@ struct bssgp_bvc_ctx;
|
|||
|
||||
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);
|
||||
struct gprs_nsvc *nsvc);
|
||||
void log_set_bvc_filter(struct log_target *target,
|
||||
const struct bssgp_bvc_ctx *bctx);
|
||||
struct bssgp_bvc_ctx *bctx);
|
||||
|
||||
extern const struct log_info log_info;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue