chiark / gitweb /
sd-daemon: fix cppcheck warnings
authorSami Kerola <kerolasa@iki.fi>
Mon, 17 Dec 2012 10:13:17 +0000 (11:13 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Dec 2012 10:41:31 +0000 (11:41 +0100)
commitd1d7caeeee65c11c54ee1ce0a878024715208a75
tree22973b54ce9008b138966261b38247f2252457c2
parent23757887f768b0b7339239cc98aee879d9f4d87f
sd-daemon: fix cppcheck warnings

Found with 'cppcheck --enable=all --inconclusive --std=posix' while
working with util-linux, which has a copy of this file.

[misc-utils/sd-daemon.c:363]: (style) Checking if unsigned variable \
'length' is less than zero.
[misc-utils/sd-daemon.c:366]: (style) Checking if unsigned variable \
'length' is less than zero.

References: http://www.spinics.net/lists/util-linux-ng/msg07031.html
src/libsystemd-daemon/sd-daemon.c