configure: fix #156, install man pages to the correct sections

The current configure script installs the man pages banana.1, monkey.1
and monkey-api.3 at the top level man dir, /usr/share/man, and not in
the appropriate categories by FHS standards.  This fixes the issue.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
memory: Prevent a possible crash in mk_pointer_to_buf

Fixes a Clang warning. If *dest is NULL, memcpy would crash.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
plugin: Remove dead assignment

Fixes a Clang warning.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
request: Remove dead assignment

Fixes a Clang warning. This write is pointless, since it is never read.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
user: Fix possible crash

Fixes a Clang warning. If getpwnam returns NULL, accessing usr->something
would segfault.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
user: Check the return value of sete[ug]id

Fixes a Clang warning.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
config: Prevent possible crash

Fixes a Clang warning.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
palm: Remove two dead writes

Fixes two Clang warnings.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
mandril: Correct in_addr usage

Fixes a Clang warning. The file had used only a pointer to in_addr, when
it should have used a struct!

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
monkey : adds thread key initialization

added missing thread key initialization for mk_cache_utils_gmt_text

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
palm: Prevent possible crash

Fixes a Clang warning. If pr is NULL, the final return would crash.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
config: Don't pass NULL to readdir, v2

Exit instead of return.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
mimetype: If the file is invalid, we would crash. Exit instead. v2

Fixes a Clang warning. v2: exit instead of abort

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
cheetah: Comment out some dead code

Fixes two Clang warnings (dead writes to init and last).

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
dirlisting: Prevent possible crash

Fixes a Clang warning.

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
liana: Remove unused variable

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
palm: Constify some read-only variables

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
mandril: Remove unused function argument

Signed-off-by: Eduardo Silva <edsiper@gmail.com>