Fix various compiler warnings in hnb-gw code
Since we finally started to use -Wall, the related warnings became
visible.
Change-Id: I516700eab2aa7c3412dd62775c4960aed9d4b682
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c
index 0473482..7c1e239 100644
--- a/src/hnbgw_hnbap.c
+++ b/src/hnbgw_hnbap.c
@@ -355,8 +355,8 @@
if (rc < 0)
return rc;
- DEBUGP(DHNBAP, "HNB-DE-REGISTER cause=%ld\n",
- ies.cause);
+ DEBUGP(DHNBAP, "HNB-DE-REGISTER cause=%s\n",
+ hnbap_cause_str(&ies.cause));
hnbap_free_hnbde_registeries(&ies);
hnb_context_release(ctx);
@@ -457,7 +457,7 @@
ctxid = asn1bitstr_to_u24(&ies.context_ID);
- DEBUGP(DHNBAP, "UE-DE-REGISTER context=%ld cause=%s\n",
+ DEBUGP(DHNBAP, "UE-DE-REGISTER context=%u cause=%s\n",
ctxid, hnbap_cause_str(&ies.cause));
ue = ue_context_by_id(ctx->gw, ctxid);
@@ -486,7 +486,7 @@
static int hnbgw_rx_initiating_msg(struct hnb_context *hnb, InitiatingMessage_t *imsg)
{
- int rc;
+ int rc = 0;
switch (imsg->procedureCode) {
case ProcedureCode_id_HNBRegister: /* 8.2 */
@@ -517,6 +517,8 @@
imsg->procedureCode);
break;
}
+
+ return rc;
}
static int hnbgw_rx_successful_outcome_msg(struct hnb_context *hnb, SuccessfulOutcome_t *msg)
@@ -581,5 +583,5 @@
int hnbgw_hnbap_init(void)
{
-
+ return 0;
}