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:
Daniel O'Connor 2012-06-08 17:01:50 +09:30
parent 9d8d6ed94f
commit 86c5e6945f
3 changed files with 3 additions and 3 deletions

2
lsif.c
View File

@ -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);
}
}

View File

@ -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)
{

View File

@ -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);