[Toybox] Put syslogd and logger into the same file?
Rob Landley
rob at landley.net
Tue Aug 20 12:54:18 PDT 2013
On 08/19/2013 03:15:25 PM, Felix Janda wrote:
> Felix Janda wrote:
> [...]
> > So how about the following hack?
> >
> > Keep them in separate files. Have one common config symbol, tear
> everything
> > out of logger.c but logger_main, declare SYSLOG_NAMES in syslogd.c,
> put
> > something like the current lookup() in logger.c to syslogd.c and
> make an
> > extern declaration in logger.c. The new lookup() (better use a less
> generic
> > name then) should accept an integer as its first argument instead
> of the
> > table, say 0 stands for facilities and 1 for priorities.
>
> To be more concrete, below is a corresponding patch.
Applied.
Rob
1377028458.0
More information about the Toybox
mailing list