projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correzioni
[gapil.git]
/
sources
/
TCP_daytime.c
diff --git
a/sources/TCP_daytime.c
b/sources/TCP_daytime.c
index 80e2c3835f3dc633a2f078f8370893a35a494f76..ddb8e129b40d485b7a305ab50bc8842df9f29868 100644
(file)
--- a/
sources/TCP_daytime.c
+++ b/
sources/TCP_daytime.c
@@
-30,11
+30,13
@@
/*
* Include needed headers
*/
/*
* Include needed headers
*/
-#include <sys/types.h> /* primitive system data types */
+#include <stdlib.h> /* standard library */
+//#include <sys/types.h> /* primitive system data types */
#include <unistd.h> /* unix standard library */
#include <unistd.h> /* unix standard library */
-#include <arpa/inet.h> /* IP addresses conversion utili
it
es */
+#include <arpa/inet.h> /* IP addresses conversion utili
ti
es */
#include <sys/socket.h> /* socket constants, types and functions */
#include <stdio.h> /* standard I/O library */
#include <sys/socket.h> /* socket constants, types and functions */
#include <stdio.h> /* standard I/O library */
+#include <string.h> /* C strings library */
#define MAXLINE 80
/* Program begin */
#define MAXLINE 80
/* Program begin */