mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-12-22 17:01:46 +00:00
I corrected a grammatical error in hook.c, And I removed some unnecessary debug lines.
This commit is contained in:
parent
d585116c1c
commit
ccb9620a0a
12
src/hook.c
12
src/hook.c
@ -1127,11 +1127,15 @@ hook_retry_scan:
|
||||
me.cur_node->flags|=MAP_HNODE;
|
||||
qspn_b_del_all_dead_rnodes();
|
||||
}
|
||||
|
||||
loginfo("We have %d nodes around us. (%d are hooking)",
|
||||
if(me.cur_node->links < 1) {
|
||||
loginfo("We have %d nodes around us. (%d are hooking)",
|
||||
me.cur_node->links, total_hooking_nodes);
|
||||
|
||||
return 0;
|
||||
}
|
||||
else if(me.cur_node->links == 1) {
|
||||
loginfo("We have %d node around us. (%d are hooking)",
|
||||
me.cur_node->links, total_hooking_nodes);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
11
src/inet.c
11
src/inet.c
@ -1055,16 +1055,7 @@ ssize_t inet_sendto(int s, const void *msg, size_t len, int flags,
|
||||
ssize_t err;
|
||||
fd_set fdset;
|
||||
int ret;
|
||||
|
||||
int sendbuf;
|
||||
socklen_t optlen;
|
||||
optlen = sizeof(sendbuf);
|
||||
int res = getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sendbuf, &optlen);
|
||||
|
||||
error("GetSockOpt: %i \n", res);
|
||||
|
||||
error("Socket: %i Data: %p Data Length: %u Flags: %i Address: %p Address Length: %u", s, msg, len, flags, to, tolen);
|
||||
|
||||
|
||||
if((err=sendto(s, msg, len, flags, to, tolen))==-1) {
|
||||
error("sendto errno: %d err is: %d", errno, err);
|
||||
switch(errno)
|
||||
|
Loading…
Reference in New Issue
Block a user