gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH]: Silence another compiler warning under cygwin/gcc4.9


From: Matt
Subject: [gpsd-dev] [PATCH]: Silence another compiler warning under cygwin/gcc4.9
Date: Sat, 06 Sep 2014 17:09:29 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0

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,
           ^

Attachment: add-sockaddr-cast-in-sendto-call.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]