mirror of
https://repo.or.cz/socat.git
synced 2025-07-09 21:56:33 +00:00
fixed compiler warnings on Mac OS X 64bit
This commit is contained in:
parent
b4b7ffc732
commit
98abed1abd
5 changed files with 16 additions and 6 deletions
2
xio-ip.c
2
xio-ip.c
|
@ -454,8 +454,10 @@ int xiolog_ancillary_ip(struct cmsghdr *cmsg, int *num,
|
|||
const char *cmsgtype, *cmsgname = NULL, *cmsgenvn = NULL, *cmsgfmt = NULL;
|
||||
size_t msglen;
|
||||
char scratch1[16]; /* can hold an IPv4 address in ASCII */
|
||||
#if WITH_IP4 && defined(IP_PKTINFO) && HAVE_STRUCT_IN_PKTINFO
|
||||
char scratch2[16];
|
||||
char scratch3[16];
|
||||
#endif
|
||||
|
||||
msglen = cmsg->cmsg_len-((char *)CMSG_DATA(cmsg)-(char *)cmsg);
|
||||
envbuff[0] = '\0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue