projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correzioni rimaste indietro ed espansione funzioni del resolver.
[gapil.git]
/
listati
/
mygethost.c
diff --git
a/listati/mygethost.c
b/listati/mygethost.c
index 0378058f686fe4c03c61512046416f3350898b37..6587e6b1a1505466f5cb10abaa0bc10a058fc0d4 100644
(file)
--- a/
listati/mygethost.c
+++ b/
listati/mygethost.c
@@
-9,10
+9,14
@@
int main(int argc, char *argv[])
char *addr;
char buffer[INET6_ADDRSTRLEN];
...
char *addr;
char buffer[INET6_ADDRSTRLEN];
...
+ /*
+ * Main Body
+ */
if ((argc - optind) != 1) {
printf("Wrong number of arguments %d\n", argc - optind);
usage();
}
if ((argc - optind) != 1) {
printf("Wrong number of arguments %d\n", argc - optind);
usage();
}
+ /* get resolution */
data = gethostbyname(argv[1]);
if (data == NULL) {
herror("Errore di risoluzione");
data = gethostbyname(argv[1]);
if (data == NULL) {
herror("Errore di risoluzione");