mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 18:22:18 +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;
|
me.cur_node->flags|=MAP_HNODE;
|
||||||
qspn_b_del_all_dead_rnodes();
|
qspn_b_del_all_dead_rnodes();
|
||||||
}
|
}
|
||||||
|
if(me.cur_node->links < 1) {
|
||||||
loginfo("We have %d nodes around us. (%d are hooking)",
|
loginfo("We have %d nodes around us. (%d are hooking)",
|
||||||
me.cur_node->links, total_hooking_nodes);
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1056,15 +1056,6 @@ ssize_t inet_sendto(int s, const void *msg, size_t len, int flags,
|
|||||||
fd_set fdset;
|
fd_set fdset;
|
||||||
int ret;
|
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) {
|
if((err=sendto(s, msg, len, flags, to, tolen))==-1) {
|
||||||
error("sendto errno: %d err is: %d", errno, err);
|
error("sendto errno: %d err is: %d", errno, err);
|
||||||
switch(errno)
|
switch(errno)
|
||||||
|
Loading…
Reference in New Issue
Block a user