multipath-tools: miscellaneous code cleanups
authorBenjamin Marzinski <bmarzins@redhat.com>
Mon, 3 Aug 2009 22:03:22 +0000 (17:03 -0500)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Tue, 4 Aug 2009 21:34:22 +0000 (23:34 +0200)
commit761c66f4aaba5d04a3106c7d55c8abfb756469b2
tree962ca245cba59ce54f782ae5ed74af4f5610be84
parent2f9c759d35aeda46951891343a138663313a3d63
multipath-tools: miscellaneous code cleanups

io_getevents can return < 0 if it is interrupted, but it doesn't set errno.
This patch sets errno to zero first to avoid printing garbage. Also the
log_thread and uevq_thread functions need to return NULL to avoid compiler
warnings.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/checkers/directio.c
libmultipath/log_pthread.c
libmultipath/uevent.c