git://git.onelab.eu
/
bind_public.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8f93bf1
)
Commented the debug() function to avoid printing messages on production slices. Devel...
author
Guilherme Sperb Machado
<gsm@machados.org>
Sun, 28 Jun 2015 13:13:54 +0000
(15:13 +0200)
committer
Guilherme Sperb Machado
<gsm@machados.org>
Sun, 28 Jun 2015 13:13:54 +0000
(15:13 +0200)
bind_public.c
patch
|
blob
|
history
diff --git
a/bind_public.c
b/bind_public.c
index
6134f9e
..
5e32ca1
100644
(file)
--- 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 {
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 );
}
}
rc = bind_original( sockfd, (struct sockaddr*)&new_addr, addrlen );
}
}