diff options
author | Matt <ukyg9e5r6k7gubiekd6@yahoo.com> | 2014-09-06 17:09:29 +1000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-09-06 03:26:26 -0400 |
commit | 14aeb2bfdbd54220876e0a80092ddd7f522fe361 (patch) | |
tree | 2f9bcd07e27e71910bb54a091f23a8d3d0e15975 /gps2udp.c | |
parent | 8f20d7b2d1ece8f3205ca038726c77daa5234c0c (diff) | |
download | gpsd-14aeb2bfdbd54220876e0a80092ddd7f522fe361.tar.gz |
Silence another compiler warning under cygwin/gcc4.9
gps2udp.c: In function 'send_udp':
gps2udp.c:117:19: warning: passing argument 5 of 'sendto' from
incompatible pointer type
ssize_t status = sendto(sock[channel],
^
In file included from gps2udp.c:38:0:
/usr/include/sys/socket.h:38:11: note: expected 'const struct sockaddr
*' but argument is of type 'struct sockaddr_in *'
ssize_t sendto (int, const void *, size_t __len, int __flags,
^
Diffstat (limited to 'gps2udp.c')
-rw-r--r-- | gps2udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -118,7 +118,7 @@ static int send_udp (char *nmeastring, size_t ind) buffer, ind, 0, - &remote[channel], + (const struct sockaddr *)&remote[channel], (int)sizeof(remote)); if (status < (ssize_t)ind) { (void)fprintf(stderr, "gps2udp: failed to send [%s] \n", nmeastring); |