From 2cd36e87ae3e09e33225ac3b1ef4ca649f21f2f0 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 22 Mar 2016 00:59:47 +0100 Subject: fix build: match Iu event cb enum argument type from declaration --- openbsc/src/gprs/gprs_gmm.c | 2 +- openbsc/src/gprs/sgsn_main.c | 2 +- openbsc/src/osmo-cscn/cscn_main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c index b2b4bd93f..ac8c0c410 100644 --- a/openbsc/src/gprs/gprs_gmm.c +++ b/openbsc/src/gprs/gprs_gmm.c @@ -99,7 +99,7 @@ static const struct tlv_definition gsm48_sm_att_tlvdef = { static int gsm48_gmm_authorize(struct sgsn_mm_ctx *ctx); int sgsn_ranap_rab_ass_resp(struct sgsn_mm_ctx *ctx, RANAP_RAB_SetupOrModifiedItemIEs_t *setup_ies); -int sgsn_ranap_iu_event(struct ue_conn_ctx *ctx, int type, void *data) +int sgsn_ranap_iu_event(struct ue_conn_ctx *ctx, enum iu_event_type type, void *data) { struct sgsn_mm_ctx *mm; int rc = -1; diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c index 01a11218e..8c0ead051 100644 --- a/openbsc/src/gprs/sgsn_main.c +++ b/openbsc/src/gprs/sgsn_main.c @@ -305,7 +305,7 @@ static const struct log_info gprs_log_info = { int asn_debug; -int sgsn_ranap_iu_event(struct ue_conn_ctx *ctx, int type, void *data); +int sgsn_ranap_iu_event(struct ue_conn_ctx *ctx, enum iu_event_type type, void *data); int main(int argc, char **argv) { diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c index dc0d192b0..88963651d 100644 --- a/openbsc/src/osmo-cscn/cscn_main.c +++ b/openbsc/src/osmo-cscn/cscn_main.c @@ -322,7 +322,7 @@ static int rcvmsg_iu_cs(struct msgb *msg, struct gprs_ra_id *ra_id, /* FIXME gpr return gsm0408_rcvmsg_iucs(cscn_network, msg); } -static int handle_iu_event(struct ue_conn_ctx *ctx, int type, +static int handle_iu_event(struct ue_conn_ctx *ctx, enum iu_event_type type, void *data) { DEBUGP(DIUCS, "got Iu-CS event %u\n", type); -- cgit v1.2.3