projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Un po' di materiale su {{{splice}}} e inizio della ripulitura degli
[gapil.git]
/
sources
/
TCP_daytime.c
diff --git
a/sources/TCP_daytime.c
b/sources/TCP_daytime.c
index 4ed7e4f027cd14b6b7714ec0a5fe8cd2da4701f2..80e2c3835f3dc633a2f078f8370893a35a494f76 100644
(file)
--- a/
sources/TCP_daytime.c
+++ b/
sources/TCP_daytime.c
@@
-26,17
+26,15
@@
*
* Usage: daytime -h give all info's
*
*
* Usage: daytime -h give all info's
*
- * $Id: TCP_daytime.c,v 1.2 2003/04/29 15:33:39 piccardi Exp $
- *
****************************************************************/
/*
* Include needed headers
*/
****************************************************************/
/*
* Include needed headers
*/
-#include <sys/types.h> /* pr
edefined
types */
-#include <unistd.h> /*
include
unix standard library */
+#include <sys/types.h> /* pr
imitive system data
types */
+#include <unistd.h> /* unix standard library */
#include <arpa/inet.h> /* IP addresses conversion utiliites */
#include <arpa/inet.h> /* IP addresses conversion utiliites */
-#include <sys/socket.h> /* socket
library
*/
-#include <stdio.h> /*
include
standard I/O library */
+#include <sys/socket.h> /* socket
constants, types and functions
*/
+#include <stdio.h> /* standard I/O library */
#define MAXLINE 80
/* Program begin */
#define MAXLINE 80
/* Program begin */
@@
-121,7
+119,7
@@
void usage(void) {
printf("Take daytime from a remote host \n");
printf("Usage:\n");
printf(" daytime [-h] [-v] [host in dotted decimal form] \n");
printf("Take daytime from a remote host \n");
printf("Usage:\n");
printf(" daytime [-h] [-v] [host in dotted decimal form] \n");
-
printf(" -v
set verbosity on\n");
+
// printf(" -v
set verbosity on\n");
printf(" -h print this help\n");
exit(1);
}
printf(" -h print this help\n");
exit(1);
}