From afc3bc6b65c428f45aff69ecee1f3a2db7f15f51 Mon Sep 17 00:00:00 2001 From: softins Date: Wed, 21 Jul 2004 08:57:05 +0000 Subject: [PATCH] Added trivial (int) cast to keep compiler happier. --- src/api/sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/sockets.c b/src/api/sockets.c index 2b7e6956..18f15a21 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -1141,7 +1141,7 @@ int lwip_getsockopt (int s, int level, int optname, void *optval, socklen_t *opt LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_TCP, TCP_NODELAY) = %s\n", s, (*(int*)optval)?"on":"off") ); break; case TCP_KEEPALIVE: - *(int*)optval = sock->conn->pcb.tcp->keepalive; + *(int*)optval = (int)sock->conn->pcb.tcp->keepalive; LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, IPPROTO_IP, TCP_KEEPALIVE) = %d\n", s, *(int *)optval)); break; } /* switch */