summaryrefslogtreecommitdiffstats
path: root/openbsc/src/utils/smpp_mirror.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-01-01 12:32:03 +0100
committerHarald Welte <laforge@gnumonks.org>2015-01-01 12:32:03 +0100
commit7b1d25a11e44bbc1cb0d2acd9f1a3d4a16ec7c90 (patch)
tree066ebdd55b1df8e83748c3133b0c8a5e952404b9 /openbsc/src/utils/smpp_mirror.c
parent7b129e76cebee739dc959d70d7c8c257e83c76b1 (diff)
Fix most compiler warnings with gcc-4.9.2
Diffstat (limited to 'openbsc/src/utils/smpp_mirror.c')
-rw-r--r--openbsc/src/utils/smpp_mirror.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/src/utils/smpp_mirror.c b/openbsc/src/utils/smpp_mirror.c
index 488c4a193..cf3657e39 100644
--- a/openbsc/src/utils/smpp_mirror.c
+++ b/openbsc/src/utils/smpp_mirror.c
@@ -247,7 +247,7 @@ dead_socket:
return 0;
}
-static void esme_write_cb(struct osmo_fd *ofd, struct msgb *msg)
+static int esme_write_cb(struct osmo_fd *ofd, struct msgb *msg)
{
struct esme *esme = ofd->data;
int rc;
@@ -260,8 +260,10 @@ static void esme_write_cb(struct osmo_fd *ofd, struct msgb *msg)
exit(99);
} else if (rc < msgb_length(msg)) {
LOGP(DSMPP, LOGL_ERROR, "[%s] Short write\n", esme->system_id);
- return;
+ return 0;
}
+
+ return 0;
}
static int smpp_esme_init(struct esme *esme, const char *host, uint16_t port)