[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] Re: Patches for submission -- ping
From: |
Alfred M. Szmidt |
Subject: |
[bug-inetutils] Re: Patches for submission -- ping |
Date: |
Mon, 28 May 2007 22:26:52 +0200 (CEST) |
Commited. Thanks!
2007-05-28 Debarshi Ray <address@hidden>
* ping/ping_timestamp.c: Don't include "getopt.h". Include
"ping_common.h".
(ping_timestamp): Use error instead of "output message; exit;"
concoction's.
* ping/ping_impl.h (is_root, preload): Removed extern
declarations.
* ping/ping_echo.c (ping_echo): Use error instead of "output
message; exit;" concoction's.
* ping/ping_common.h (show_license): Removed declaration.
* ping/ping_common.c: Include "ping_common.h".
(ping_cvt_number, decode_pattern): Use error instead of "output
message; exit;" concoction's.
(show_license): Function removed.
* ping/ping_address.c: Don't include "getopt.h". Include
"ping_common.h".
(ping_address): Use error instead of "output message; exit;"
concoction's.
* ping/ping6.c: Include <stdbool.h>. Don't include <getopt.h>.
Include <argp.h> and "libinetutils.h".
(short_options, long_options): Variables removed.
(is_root, patptr, one, pattern_len): New variables.
(show_usage): Function removed.
(program_name): Variable removed.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc, argp_options): New variables.
(parse_opt): New function.
(argp): New variable.
(main): Use argp to parse program options.
(ping_echo, ping_init): Use error instead of "output message;
exit;" concoction's.
* ping/ping.c: Don't include <getopt.h>. Include <argp.h> and
"libinetutils.h".
(short_options, long_options): Variables removed.
(is_root, patptr, pattern_len, socket_type, count, interval): New
variables.
(show_usage): Function removed.
(decode_type): Changed type to `int (*decode_type (const char
*arg)) (int argc, char **argv)'. All callers changed accordingly.
(program_name): Variable removed.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc): New variables.
(ARG_ECHO, ARG_ADDRESS, ARG_TIMESTAMP, ARG_ROUTERDISCOVERY): New
enums.
(argp_options): New variable.
(parse_opt): New function.
(main): Use argp to parse program options.
* ping/Makefile.am (INCLUDES): Added
`-I$(top_srcdir)/libinetutils'.