|
|
@ -44,9 +44,7 @@ main (argc, argv)
|
|
|
|
extern char *optarg;
|
|
|
|
extern char *optarg;
|
|
|
|
extern int optind;
|
|
|
|
extern int optind;
|
|
|
|
|
|
|
|
|
|
|
|
/* TODO: Sun's C compiler does not know "signed" (bug #623444). And
|
|
|
|
int result;
|
|
|
|
getopt returns an int, anyway */
|
|
|
|
|
|
|
|
signed char ch;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int sockfd;
|
|
|
|
int sockfd;
|
|
|
|
struct addrinfo hints, *res;
|
|
|
|
struct addrinfo hints, *res;
|
|
|
@ -145,9 +143,10 @@ main (argc, argv)
|
|
|
|
results[i].valid = 0;
|
|
|
|
results[i].valid = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
progname = argv[0];
|
|
|
|
progname = argv[0];
|
|
|
|
while ((ch = getopt (argc, argv, "vs:n:w:dch:i:rut:f:SCp:P:aA46")) != EOF)
|
|
|
|
while ((result =
|
|
|
|
|
|
|
|
getopt (argc, argv, "vs:n:w:dch:i:rut:f:SCp:P:aA46")) != -1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
switch (ch)
|
|
|
|
switch ((char) result)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case 'v':
|
|
|
|
case 'v':
|
|
|
|
verbose = TRUE;
|
|
|
|
verbose = TRUE;
|
|
|
|