I corrected a grammatical error in hook.c, And I removed some unnecessary debug lines.

This commit is contained in:
MissValeska 2014-05-11 20:10:42 -07:00
parent d585116c1c
commit ccb9620a0a
2 changed files with 9 additions and 14 deletions

View File

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

View File

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