projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed various signedness issues identified by -Wextra.
[collectd.git]
/
src
/
configfile.c
diff --git
a/src/configfile.c
b/src/configfile.c
index
0f49de2
..
bb1770d
100644
(file)
--- a/
src/configfile.c
+++ b/
src/configfile.c
@@
-555,7
+555,7
@@
static oconfig_item_t *cf_read_dir (const char *dir, int depth)
status = ssnprintf (name, sizeof (name), "%s/%s",
dir, de->d_name);
status = ssnprintf (name, sizeof (name), "%s/%s",
dir, de->d_name);
- if (
status >= sizeof (name
))
+ if (
(status < 0) || ((size_t) status >= sizeof (name)
))
{
ERROR ("configfile: Not including `%s/%s' because its"
" name is too long.",
{
ERROR ("configfile: Not including `%s/%s' because its"
" name is too long.",
@@
-630,7
+630,7
@@
static oconfig_item_t *cf_read_generic (const char *path, int depth)
int status;
const char *path_ptr;
wordexp_t we;
int status;
const char *path_ptr;
wordexp_t we;
-
in
t i;
+
size_
t i;
if (depth >= CF_MAX_DEPTH)
{
if (depth >= CF_MAX_DEPTH)
{