projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correzione per gestire IPv4 e IPv6, fase 1
[gapil.git]
/
sources
/
TCP_echod.c
diff --git
a/sources/TCP_echod.c
b/sources/TCP_echod.c
index 7062c3b8e658ff0ec7a7f524fffd1dd5951313c2..f0eab95c2f7c5064b3bb8611eb684eef27629d35 100644
(file)
--- a/
sources/TCP_echod.c
+++ b/
sources/TCP_echod.c
@@
-116,7
+116,7
@@
int main(int argc, char *argv[])
SignalRestart(SIGCHLD, HandSigCHLD); /* restarting handler */
}
/* create and bind socket */
SignalRestart(SIGCHLD, HandSigCHLD); /* restarting handler */
}
/* create and bind socket */
- if ( (list_fd = sockbind(
argv[optind]
, "echo", 6, SOCK_STREAM)) < 0) {
+ if ( (list_fd = sockbind(
NULL
, "echo", 6, SOCK_STREAM)) < 0) {
if (errno) perror("Socket creation error");
return 1;
}
if (errno) perror("Socket creation error");
return 1;
}