chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: modernization and test for load_env_file
[elogind.git]
/
src
/
shared
/
conf-files.c
diff --git
a/src/shared/conf-files.c
b/src/shared/conf-files.c
index 83e4cce15617ef89760b019c722127e52bf4e3a5..34b86293d3a246b9703a36eab41f8f020de4ff38 100644
(file)
--- a/
src/shared/conf-files.c
+++ b/
src/shared/conf-files.c
@@
-39,7
+39,6
@@
static int files_add(Hashmap *h, const char *path, const char *suffix) {
DIR *dir;
static int files_add(Hashmap *h, const char *path, const char *suffix) {
DIR *dir;
- struct dirent buffer, *de;
int r = 0;
dir = opendir(path);
int r = 0;
dir = opendir(path);
@@
-50,10
+49,12
@@
static int files_add(Hashmap *h, const char *path, const char *suffix) {
}
for (;;) {
}
for (;;) {
+ struct dirent *de;
+ union dirent_storage buf;
int k;
char *p;
int k;
char *p;
- k = readdir_r(dir, &buf
fer
, &de);
+ k = readdir_r(dir, &buf
.de
, &de);
if (k != 0) {
r = -k;
goto finish;
if (k != 0) {
r = -k;
goto finish;