summaryrefslogtreecommitdiff
path: root/src/journal-remote/journal-remote-parse.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-09 14:33:32 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-09 14:59:53 +0200
commit57255510c95ca3369d241502f26d7bbd8fac30a6 (patch)
tree0f08bcb8422da1cd42e6de2cf8d61f6db711956a /src/journal-remote/journal-remote-parse.c
parent1f6b411372076426c0faf0bb350437fb4d82931f (diff)
tree-wide: replace while(1) by for(;;) everywhere
Another Coccinelle script.
Diffstat (limited to 'src/journal-remote/journal-remote-parse.c')
-rw-r--r--src/journal-remote/journal-remote-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote-parse.c b/src/journal-remote/journal-remote-parse.c
index 5ff05d3ad6..2e0f78701a 100644
--- a/src/journal-remote/journal-remote-parse.c
+++ b/src/journal-remote/journal-remote-parse.c
@@ -94,7 +94,7 @@ static int get_line(RemoteSource *source, char **line, size_t *size) {
assert(source->buf == NULL || source->size > 0);
assert(source->fd >= 0);
- while (true) {
+ for (;;) {
if (source->buf) {
size_t start = MAX(source->scanned, source->offset);