diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-11-21 08:14:37 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-11-21 11:08:56 +0000 |
commit | da86fe5ae31e2a6da6c5f6a2af853c3b8ec603c5 (patch) | |
tree | a46a849c97909d8032cbccd26ebcde37a2753a21 /src/hnbgw.c | |
parent | ffc20938580adbdc3f280b8b6b5ae01a48f5f664 (diff) |
Fix various compiler warnings in hnb-gw code
Since we finally started to use -Wall, the related warnings became
visible.
Change-Id: I516700eab2aa7c3412dd62775c4960aed9d4b682
Diffstat (limited to 'src/hnbgw.c')
-rw-r--r-- | src/hnbgw.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/hnbgw.c b/src/hnbgw.c index 97905b3..5c0570e 100644 --- a/src/hnbgw.c +++ b/src/hnbgw.c @@ -44,9 +44,12 @@ #include <osmocom/vty/telnet_interface.h> #include <osmocom/vty/logging.h> +#include <osmocom/vty/command.h> #include <osmocom/netif/stream.h> +#include <osmocom/ranap/ranap_common.h> + #include <osmocom/sigtran/protocol/m3ua.h> #include <osmocom/sigtran/sccp_sap.h> @@ -69,8 +72,6 @@ void *talloc_asn1_ctx; static struct hnb_gw *g_hnb_gw; -static int listen_fd_cb(struct osmo_fd *fd, unsigned int what); - static struct hnb_gw *hnb_gw_create(void *ctx) { struct hnb_gw *gw = talloc_zero(ctx, struct hnb_gw); @@ -175,13 +176,13 @@ void ue_context_free(struct ue_context *ue) } static int hnb_close_cb(struct osmo_stream_srv *conn) { + return 0; } static int hnb_read_cb(struct osmo_stream_srv *conn) { struct hnb_context *hnb = osmo_stream_srv_get_data(conn); struct msgb *msg = msgb_alloc(IUH_MSGB_SIZE, "Iuh rx"); - int flags = 0; int rc; if (!msg) @@ -222,12 +223,12 @@ static int hnb_read_cb(struct osmo_stream_srv *conn) case IUH_PPI_SABP: case IUH_PPI_RNA: case IUH_PPI_PUA: - LOGP(DMAIN, LOGL_ERROR, "Unimplemented SCTP PPID=%u received\n", + LOGP(DMAIN, LOGL_ERROR, "Unimplemented SCTP PPID=%lu received\n", msgb_sctp_ppid(msg)); rc = 0; break; default: - LOGP(DMAIN, LOGL_ERROR, "Unknown SCTP PPID=%u received\n", + LOGP(DMAIN, LOGL_ERROR, "Unknown SCTP PPID=%lu received\n", msgb_sctp_ppid(msg)); rc = 0; break; @@ -421,8 +422,6 @@ static void handle_options(int argc, char **argv) int main(int argc, char **argv) { - struct osmo_sccp_user *sccp_user; - struct osmo_sccp_link *sua_link; struct osmo_stream_srv_link *srv; int rc; |