bug-inetutils
[Top][All Lists]
Advanced

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

Re: [bug-inetutils] Argpfying logger


From: Debarshi Ray
Subject: Re: [bug-inetutils] Argpfying logger
Date: Wed, 16 Apr 2008 08:19:57 +0530

Here is the ChangeLog:

2008-04-16  Debarshi Ray <address@hidden>

        * logger/Makefile.am (INCLUDES): Added `-I$(top_srcdir)/libinetutils'.

        * logger/logger.c: Include <argp.h>, and <error.h>.  Remove
        include for <getopt.h>.  Include "libinetutils.h".
        (program_name, short_options, long_options): Variables removed.
        (tag, logflags, pri): New variables.
        (ARGP_PROGRAM_DATA): Call macro.
        (args_doc, doc, argp_options): New variables.
        (usage): Function removed.
        (parse_opt): New function.
        (argp): New variable.
        (main): Added new variable INDEX.  Removed variables OPTION,
        LOGFLAGS, PRI and TAG.  Use argp to parse program options.
        (pencode): Use error instead of "output message; exit;"
        concoction's.  Use EXIT_FAILURE.

Going to commit it now.

Happy hacking,
Debarshi
-- 
"From what we get, we can make a living; what we give, however, makes a life."
    -- Arthur Ashe




reply via email to

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