mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-29 15:43:56 +00:00
Don't force signedness for name in overlay_interface_register().
I can't see any point to forcing the signedness, it causes warnings on platforms with a signed-char by default.
This commit is contained in:
parent
9d8d6ed94f
commit
86c5e6945f
2
lsif.c
2
lsif.c
@ -92,7 +92,7 @@ int scrapeProcNetRoute()
|
||||
if (!(d&(~m))) {
|
||||
local.sin_addr.s_addr=d;
|
||||
broadcast.sin_addr.s_addr=d|~m;
|
||||
overlay_interface_register((unsigned char *)name,local,broadcast);
|
||||
overlay_interface_register(name,local,broadcast);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -492,7 +492,7 @@ int overlay_sendto(struct sockaddr_in *recipientaddr,unsigned char *bytes,int le
|
||||
return len;
|
||||
}
|
||||
|
||||
int overlay_interface_register(unsigned char *name,
|
||||
int overlay_interface_register(char *name,
|
||||
struct sockaddr_in local,
|
||||
struct sockaddr_in broadcast)
|
||||
{
|
||||
|
2
serval.h
2
serval.h
@ -1443,7 +1443,7 @@ int overlay_mdp_getmyaddr(int index,unsigned char *sid);
|
||||
int overlay_mdp_bind(unsigned char *localaddr,int port);
|
||||
int overlay_route_node_info(overlay_mdp_frame *mdp,
|
||||
struct sockaddr_un *addr,int addrlen);
|
||||
int overlay_interface_register(unsigned char *name,
|
||||
int overlay_interface_register(char *name,
|
||||
struct sockaddr_in local,
|
||||
struct sockaddr_in broadcast);
|
||||
int overlay_queue_dump(overlay_txqueue *q);
|
||||
|
Loading…
x
Reference in New Issue
Block a user