X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fgethost.c;h=c269def1e9c3187503398433140201c00c0bd59f;hp=e949713cb54d80ca6259f5bd4860129f381e0ed8;hb=d451ac30382ae398b9a2242a4f82b3438affc8a7;hpb=31f55ec58bee8b2c4993633849b7da4e30cab222 diff --git a/sources/gethost.c b/sources/gethost.c index e949713..c269def 100644 --- a/sources/gethost.c +++ b/sources/gethost.c @@ -1,6 +1,6 @@ /* gethost.c * - * Copyright (C) 2001 Simone Piccardi + * Copyright (C) 2005 Simone Piccardi * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,16 +38,22 @@ #include /* C strings library */ #include /* primitive system data types */ #include /* socket constants, types and functions */ -#include +#include /* C resolver library */ -/* Help printing routine */ -void usage(void); -int main(int argc, char *argv[]) -{ /* - * Variables definition + * Function and globals definitions + */ +void usage(void); /* Help printing routine */ + +/* + * Main program */ +int main(int argc, char *argv[]) +{ + /* + * Variables definition + */ int i; int use = 0; struct hostent *host;