misc: Fix more covscan warnings
The only serious bug here is in transport_udp.c
(see bottom of patch), the rest are mostly detail.
covscan still reports a lot of errors against doxyxml, most of
which are because it doesn't understand the libqb hashtables.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>