/[inetutils]/inetutils/whois/main.c
ViewVC logotype

Diff of /inetutils/whois/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by marcus, Tue Jan 16 22:31:11 2001 UTC revision 1.7 by ams, Mon Apr 29 21:23:19 2002 UTC
# Line 1  Line 1 
1  /*   whois/main.c  /*   whois/main.c
2       Copyright (C) 1998, 2000 Free Software Foundation, Inc.       Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
3    
4       This program is free software; you can redistribute it and/or       This program is free software; you can redistribute it and/or
5       modify it under the terms of the GNU General Public License       modify it under the terms of the GNU General Public License
# Line 17  Line 17 
17   */   */
18    
19  #include <config.h>  #include <config.h>
 #include <version.h>  
20  #include <fnmatch.h>  #include <fnmatch.h>
21  #include <getopt.h>  #include <getopt.h>
22  #include <sys/stat.h>  #include <sys/stat.h>
# Line 183  main(int argc, char *argv[]) Line 182  main(int argc, char *argv[])
182                      "-c, --config-file       Specify alternate config file.\n"                      "-c, --config-file       Specify alternate config file.\n"
183                      "-h, --host, --server    Specify whois server.\n");                      "-h, --host, --server    Specify whois server.\n");
184    } else if (version) {    } else if (version) {
185      fprintf(stderr, "%s %s\n", inetutils_package, inetutils_version);      fprintf(stderr, "%s %s\n", PACKAGE_NAME, PACKAGE_VERSION);
186    } else if ((optind + 1) != argc) {    } else if ((optind + 1) != argc) {
187      fprintf (stderr, "There must be exactly one non-option argument.\n");      fprintf (stderr, "There must be exactly one non-option argument.\n");
188      exit(1);      exit(1);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26