building: Invoke `missing' on missing help2man

This gives the standard `missing' blurb for help2man if someone tries to
build manpages without having help2man installed, which is better (as
in, more helpful) than "help2man: command not found", in my opinion.

Signed-off-by: Anton Lofgren <alofgren@op5.com>
Merge pull request #57 from catharsis/configure-help2man

building: Invoke `missing' on missing help2man
build: Move tap/configure.in -> tap/configure.ac

This silences the following warnings:

aclocal: warning: autoconf input should be named 'configure.ac', not
'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not
'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not
'configure.in'

which is pretty nice in and of itself.

Signed-off-by: Anton Lofgren <alofgren@op5.com>
Merge pull request #59 from catharsis/configurein-configureac

build: Move tap/configure.in -> tap/configure.ac
Rename livestatus.o to so
shadownaemon: use short interval after connection errors

this reduces the downtime to recover from connection errors

Signed-off-by: Sven Nierlein <sven@nierlein.de>
shadownaemon: search new livestatus module paths first

Signed-off-by: Sven Nierlein <sven@nierlein.de>
shadownaemon: reset debug level again

Signed-off-by: Sven Nierlein <sven@nierlein.de>
livestatus.so path has changed too

Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
Get rid of xcddefault.[ch]

The microscopic functionality provided by that file is used
only from comments.c, and only from a single place per
function in xcddefault.c. Instead of keeping that senseless
arrangement, we move the functions inline from where they
were used earlier, giving us a nice opportunity to refactor
things slightly to get around the awkward signatures those
functions used to have.

Signed-off-by: Andreas Ericsson <ae@op5.se>
shadownaemon: reset full refresh flag on restarts

Signed-off-by: Sven Nierlein <sven@nierlein.de>
updated gitignore

and added autogenerated man pages

Signed-off-by: Sven Nierlein <sven@nierlein.de>
commands: Always NUL terminate command buffer

Since we pass the buffer to the process_external_command1() routine
regardless of whether it seems well-formed or not, we better terminate
it regardless as well. If we don't, we're going to overread the buffer
sooner or later, causing not only this but also subsequent commands to
become garbled.

This fixes op5#8682.

Signed-off-by: Anton Lofgren <alofgren@op5.com>
Merge pull request #62 from catharsis/terminate-command-buffer

commands: Always NUL terminate command buffer
pqueue.[ch]: Update license (and some comments)

The author of libpqueue, Volkan Yazici, emailed me mentioning
that Tom Callaway of RedHat had pointed out a licence
incompatibility between libpqueue and the rest of the code,
with a suggestion that I update the code accordingly.

Reported-by: Volkan Yazici <volkan.yazici@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
.gitignore test output

Signed-off-by: Andreas Ericsson <ae@op5.se>
Rename <objecttype>_SKIPLIST macros to OBJTYPE_<objecttype>

We retain the old ones for backwards compatibility, but since we don't
really want to use skiplists at all, we don't want to mention them
either, and the algorithm-agnostic names are much nicer to use.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Stop using the <objecttype>_SKIPLIST macros

We implemented OBJTYPE_<objtype> to have something algorithm-agnostic,
so let's use those instead.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Rearrange xodtemplate.c so all functions in it can be declared static

It's a vipernest of horrible code, but all the functions therein
rely on other functions therein being called first, with the exception
of the entry-level one (xodtemplate_read_config_data), so we really
shouldn't expose any of it to modules.

Why it was originally coded upside down (with callers appearing before
the functions they call), I have no idea, but with this patch we can
at least cut the xodtemplate.h file down to its bare minimum and have
the linker warn us about unused functions, as well as optimize the
config parsing code slightly better.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Avoid initializing variables twice

Only for the xodtemplate_free_*_skiplists functions, but it bugged
me so now it's gone.

Signed-off-by: Andreas Ericsson <ae@op5.se>