From: Guilherme Sperb Machado Date: Sun, 28 Jun 2015 13:13:54 +0000 (+0200) Subject: Commented the debug() function to avoid printing messages on production slices. Devel... X-Git-Tag: bind_public-0.1-3~1 X-Git-Url: http://git.onelab.eu/?p=bind_public.git;a=commitdiff_plain;h=41be25f2709ea2fca15236331922927ef94305c4 Commented the debug() function to avoid printing messages on production slices. Developers can un-comment the debug() function if desired. --- diff --git a/bind_public.c b/bind_public.c index 6134f9e..5e32ca1 100644 --- a/bind_public.c +++ b/bind_public.c @@ -216,7 +216,8 @@ int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen) { rc = -1; } else { - debug( addr, (struct sockaddr*)&new_addr ); + // Un-comment the following line to activate the debug message + //debug( addr, (struct sockaddr*)&new_addr ); rc = bind_original( sockfd, (struct sockaddr*)&new_addr, addrlen ); } }