util: make gcc shut up

This commit is contained in:
Lennart Poettering 2010-04-07 16:39:07 +02:00
parent dda5a135b8
commit a7610064ae
2 changed files with 2 additions and 2 deletions

2
util.c
View File

@ -1133,7 +1133,7 @@ int close_all_fds(const int except[], unsigned n_except) {
return -errno;
while ((de = readdir(d))) {
int fd;
int fd = -1;
if (de->d_name[0] == '.')
continue;

2
util.h
View File

@ -163,7 +163,7 @@ bool ignore_file(const char *filename);
} \
type name##_from_string(const char *s) { \
type i; \
unsigned u; \
unsigned u = 0; \
assert(s); \
for (i = 0; i < (type)ELEMENTSOF(name##_table); i++) \
if (streq(name##_table[i], s)) \