bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] traceroute -- permissions, setuids, etc..


From: Alfred M. Szmidt
Subject: Re: [bug-inetutils] traceroute -- permissions, setuids, etc..
Date: Fri, 18 Apr 2008 13:21:54 -0400

   +    case 'M':
   +      if (strcmp (arg, "icmp") == 0)
   +        opt_type = TRACE_ICMP;
   +      else if (strcmp (arg, "udp") == 0)
   +        opt_type = TRACE_UDP;
   +      else if (strcmp (arg, "1393") == 0)
   +        opt_type = TRACE_1393;
   +      else
   +        error (EXIT_FAILURE, 0, "method should be one of `icmp', `udp' or 
`1393'");

Uselessly verbose, use argp_error,since we get --help referal for
free, and this is a parsing error anyway...

Feel free to commit.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]