X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fmygetaddr.c;h=c34d15dad4d51cd264d8fc0064271706c5357ecd;hp=d3eb9d8e4912bccac0e6cb6477e99a653490bfbc;hb=7208522fd60468969d96dba5d8dd2cbd24b75b89;hpb=31f55ec58bee8b2c4993633849b7da4e30cab222 diff --git a/sources/mygetaddr.c b/sources/mygetaddr.c index d3eb9d8..c34d15d 100644 --- a/sources/mygetaddr.c +++ b/sources/mygetaddr.c @@ -28,11 +28,11 @@ #include /* file characteristics constants and functions */ #include /* unix standard library */ #include /* C standard library */ -#include /* I/O standard library */ -#include +#include /* standard I/O library */ +#include /* IP addresses conversion utilities */ #include /* socket constants, types and functions */ -#include -#include +#include /* IPv4 and IPv6 constants and types */ +#include /* C resolver library */ #include "Gapil.h" /* @@ -191,9 +191,9 @@ int main(int argc, char *argv[]) * routine to print usage info and exit */ void usage(void) { - printf("Program mygethost: do an hostname resolution \n"); + printf("Program mygetaddr: do an hostname resolution \n"); printf("Usage:\n"); - printf("mygethost [-h] [-p protocol] [-t socktype] hostname service\n"); + printf("mygetaddr [-h] [-p protocol] [-t socktype] hostname service\n"); printf(" -h print this help\n"); printf(" -p udp,tcp select a protocol\n"); printf(" -t dgram,stream select a socket type\n");