mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
util: make gcc shut up
This commit is contained in:
parent
dda5a135b8
commit
a7610064ae
2
util.c
2
util.c
@ -1133,7 +1133,7 @@ int close_all_fds(const int except[], unsigned n_except) {
|
|||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
while ((de = readdir(d))) {
|
while ((de = readdir(d))) {
|
||||||
int fd;
|
int fd = -1;
|
||||||
|
|
||||||
if (de->d_name[0] == '.')
|
if (de->d_name[0] == '.')
|
||||||
continue;
|
continue;
|
||||||
|
2
util.h
2
util.h
@ -163,7 +163,7 @@ bool ignore_file(const char *filename);
|
|||||||
} \
|
} \
|
||||||
type name##_from_string(const char *s) { \
|
type name##_from_string(const char *s) { \
|
||||||
type i; \
|
type i; \
|
||||||
unsigned u; \
|
unsigned u = 0; \
|
||||||
assert(s); \
|
assert(s); \
|
||||||
for (i = 0; i < (type)ELEMENTSOF(name##_table); i++) \
|
for (i = 0; i < (type)ELEMENTSOF(name##_table); i++) \
|
||||||
if (streq(name##_table[i], s)) \
|
if (streq(name##_table[i], s)) \
|
||||||
|
Loading…
Reference in New Issue
Block a user