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,10 +1127,14 @@ 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);
}
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; return 0;
} }

View File

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