From: Simon Ruderich Date: Mon, 2 Dec 2013 22:29:36 +0000 (+0100) Subject: Remove unnecessary DBG() output. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=f1c354120d8c23511e28edc0ddf0bdaefbe70e5a;p=socket2unix%2Fsocket2unix.git Remove unnecessary DBG() output. --- diff --git a/src/socket2unix.c b/src/socket2unix.c index 27f8d68..12f03f5 100644 --- a/src/socket2unix.c +++ b/src/socket2unix.c @@ -448,14 +448,14 @@ int close(int fd) { static int (*real_close)(int); LOAD_FUNCTION(real_close, "close"); - DBG("close(%d)\n", fd); - struct list *entry = remove_sockfd(fd); if (entry == NULL) { DBG("close(%d): sockfd not found\n", fd); return real_close(fd); } assert(fd == entry->orig_sockfd); + + DBG("close(%d)\n", fd); free(entry->orig_addr); free(entry); @@ -466,8 +466,6 @@ int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen) { static int (*real_bind)(int, const struct sockaddr *, socklen_t); LOAD_FUNCTION(real_bind, "bind"); - DBG("bind(%d, ..)\n", sockfd); - if (addr == NULL || addrlen < sizeof(addr->sa_family) || addr->sa_family == AF_UNIX || addr->sa_family == AF_LOCAL) { @@ -593,8 +591,6 @@ int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen) { return real_accept(sockfd, addr, addrlen); } - DBG("accept(%d, ..)\n", sockfd); - struct list *entry = find_sockfd(sockfd); if (!entry) { DBG("accept(%d, ..): sockfd not found\n", sockfd); @@ -647,8 +643,6 @@ int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen) { return real_connect(sockfd, addr, addrlen); } - DBG("connect(%d, ..)\n", sockfd); - if (addr == NULL || addrlen < sizeof(addr->sa_family) || addr->sa_family == AF_UNIX || addr->sa_family == AF_LOCAL) {