Code

Fixed various signedness issues identified by -Wextra.
authorSebastian Harl <sh@tokkee.org>
Wed, 11 Feb 2009 10:31:30 +0000 (11:31 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 11 Feb 2009 10:31:30 +0000 (11:31 +0100)
commitf50ada19dcd0dc6185dc4b410e721d46d1caba9f
treeee0865114c3a2c1e3a7205e2173c6e8ba5ea4a03
parentb72d521340383b6418fa6a75faca3bc45f06b14a
Fixed various signedness issues identified by -Wextra.

The following two issues have been addressed:

 * comparison between signed and unsigned - this was found in several places
   throughout the code and has been fixed by switching to more appropriate
   types or adding appropriate explicit casts.
 * comparison of unsigned expression < 0 is always false - this was found in
   the processes and vserver plugins where a size_t had wrongly been used
   instead of a ssize_t and an int respectively.
20 files changed:
src/apache.c
src/ascent.c
src/collectd-nagios.c
src/common.c
src/configfile.c
src/netlink.c
src/network.c
src/nginx.c
src/plugin.c
src/processes.c
src/snmp.c
src/tail.c
src/thermal.c
src/utils_cache.c
src/utils_cmd_getval.c
src/utils_match.c
src/utils_rrdcreate.c
src/utils_subst.c
src/utils_tail_match.c
src/vserver.c