summaryrefslogtreecommitdiff
path: root/src/journal/journald.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-03-15 20:49:25 +0100
committerLennart Poettering <lennart@poettering.net>2012-03-15 20:49:25 +0100
commit34a35eced40860181757abe5ec00ac0e5d8d0225 (patch)
treed9ed02c41135deb476878aadb72f97f8a898534b /src/journal/journald.c
parent490e567dbb12928528d395d2c759b80960312e8f (diff)
a couple of fixes to make llvm-analyze quiet
Diffstat (limited to 'src/journal/journald.c')
-rw-r--r--src/journal/journald.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c
index 74a58b0462..baad3ab1ad 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -154,13 +154,10 @@ static uint64_t available_space(Server *s) {
for (;;) {
struct stat st;
struct dirent buf, *de;
- int k;
- k = readdir_r(d, &buf, &de);
- if (k != 0) {
- r = -k;
- goto finish;
- }
+ r = readdir_r(d, &buf, &de);
+ if (r != 0)
+ break;
if (!de)
break;