mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-11 13:16:08 +00:00
Get rid of more warnings.
This commit is contained in:
parent
804af66308
commit
3dff555073
@ -95,6 +95,7 @@ int olsr_init_socket(void){
|
|||||||
.sin_family = AF_INET,
|
.sin_family = AF_INET,
|
||||||
.sin_addr.s_addr = htonl(INADDR_LOOPBACK),
|
.sin_addr.s_addr = htonl(INADDR_LOOPBACK),
|
||||||
.sin_port = htons(config.olsr.local_port),
|
.sin_port = htons(config.olsr.local_port),
|
||||||
|
.sin_zero = {0},
|
||||||
};
|
};
|
||||||
|
|
||||||
fd = socket(AF_INET,SOCK_DGRAM,0);
|
fd = socket(AF_INET,SOCK_DGRAM,0);
|
||||||
@ -245,6 +246,7 @@ static int send_packet(unsigned char *header, int header_len, unsigned char *pay
|
|||||||
.sin_family=AF_INET,
|
.sin_family=AF_INET,
|
||||||
.sin_addr.s_addr=htonl(INADDR_LOOPBACK),
|
.sin_addr.s_addr=htonl(INADDR_LOOPBACK),
|
||||||
.sin_port=htons(config.olsr.remote_port),
|
.sin_port=htons(config.olsr.remote_port),
|
||||||
|
.sin_zero = {0},
|
||||||
};
|
};
|
||||||
|
|
||||||
struct iovec iov[]={
|
struct iovec iov[]={
|
||||||
|
Loading…
x
Reference in New Issue
Block a user