summaryrefslogtreecommitdiff
path: root/src/journal/journalctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r--src/journal/journalctl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index bac8729494..cbf9833184 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -730,7 +730,6 @@ static int verify(sd_journal *j) {
int main(int argc, char *argv[]) {
int r;
sd_journal *j = NULL;
- unsigned line = 0;
bool need_seek = false;
sd_id128_t previous_boot_id;
bool previous_boot_id_valid = false;
@@ -904,9 +903,7 @@ int main(int argc, char *argv[]) {
}
}
- line ++;
-
- r = output_journal(j, arg_output, line, 0, flags);
+ r = output_journal(stdout, j, arg_output, 0, flags);
if (r < 0)
goto finish;