aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-03-09 16:17:14 +0000
committerHolger Freyther <zecke@selfish.org>2009-03-09 16:17:14 +0000
commitff9592fa101cf6aea4bff58f480e69456eef9390 (patch)
treeebc20890edd06f4f8a93cae1097fcb1a00c8655c /src/input
parent015b9ad9db85d5be68c78af858f1314c7390e88a (diff)
[misc] Fix compile warnings...
Diffstat (limited to 'src/input')
-rw-r--r--src/input/ipaccess.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index 6c83d6d3d..d5291ab04 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -56,10 +56,11 @@ static const u_int8_t id_ack[] = { 0, 1, IPAC_PROTO_IPACCESS, IPAC_MSGT_ID_ACK }
static int ipaccess_rcvmsg(struct msgb *msg, int fd)
{
u_int8_t msg_type = *(msg->l2h);
+ int ret = 0;
switch (msg_type) {
case IPAC_MSGT_PING:
- write(fd, pong, sizeof(pong));
+ ret = write(fd, pong, sizeof(pong));
break;
case IPAC_MSGT_PONG:
DEBUGP(DMI, "PONG!\n");
@@ -69,7 +70,7 @@ static int ipaccess_rcvmsg(struct msgb *msg, int fd)
break;
case IPAC_MSGT_ID_ACK:
DEBUGP(DMI, "ID_ACK? -> ACK!\n");
- write(fd, id_ack, sizeof(id_ack));
+ ret = write(fd, id_ack, sizeof(id_ack));
break;
}