Skip to content

Commit

Permalink
radclient: Fix the output messages (#3418)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpereira committed May 3, 2020
1 parent 831a1df commit acbd868
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/bin/radclient.c
Expand Up @@ -173,7 +173,6 @@ static void NEVER_RETURNS usage(void)
fprintf(stderr, " -n <num> Send N requests/s\n");
fprintf(stderr, " -p <num> Send 'num' packets from a file in parallel.\n");
fprintf(stderr, " -P <proto> Use proto (tcp or udp) for transport.\n");
fprintf(stderr, " -q Do not print anything out.\n");
fprintf(stderr, " -r <retries> If timeout, retry sending the packet 'retries' times.\n");
fprintf(stderr, " -s Print out summary information of auth results.\n");
fprintf(stderr, " -S <file> read secret from file, not command line.\n");
Expand Down Expand Up @@ -1212,7 +1211,7 @@ int main(int argc, char **argv)
default_log.fd = STDOUT_FILENO;
default_log.print_level = false;

while ((c = getopt(argc, argv, "46c:d:D:f:Fhi:n:p:P:qr:sS:t:vx")) != -1) switch (c) {
while ((c = getopt(argc, argv, "46c:d:D:f:Fhi:n:p:P:r:sS:t:vx")) != -1) switch (c) {
case '4':
force_af = AF_INET;
break;
Expand Down Expand Up @@ -1298,11 +1297,6 @@ int main(int argc, char **argv)
}
break;

case 'q':
do_output = false;
fr_log_fp = NULL; /* no output from you, either! */
break;

case 'r':
if (!isdigit((int) *optarg)) usage();
retries = atoi(optarg);
Expand Down Expand Up @@ -1686,7 +1680,7 @@ int main(int argc, char **argv)
}

if ((stats.lost > 0) || (stats.failed > 0)) {
fr_exit_now(1);
fr_exit_now(EXIT_FAILURE);
}

fr_exit_now(EXIT_SUCCESS);
Expand Down

0 comments on commit acbd868

Please sign in to comment.