X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbootchart%2Fbootchart.c;h=fec63721a8246404a25cbf3dd2348bcd40ae0b6f;hb=be04cbca6c2c03e9f62e8981cb9b5626c118c953;hp=8be5a27afa3511aaa34247ec05e0aa385e9544e0;hpb=8dfb6e718d621a5115bd3b8e7e826195dc6bfe14;p=elogind.git diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c index 8be5a27af..fec63721a 100644 --- a/src/bootchart/bootchart.c +++ b/src/bootchart/bootchart.c @@ -3,7 +3,7 @@ /*** This file is part of systemd. - Copyright (C) 2009-2013 Intel Coproration + Copyright (C) 2009-2013 Intel Corporation Authors: Auke Kok @@ -234,8 +234,7 @@ static int parse_args(int argc, char *argv[]) { return 0; } -static void do_journal_append(char *file) -{ +static void do_journal_append(char *file) { struct iovec iovec[5]; int r, f, j = 0; ssize_t n; @@ -254,7 +253,7 @@ static void do_journal_append(char *file) p = malloc(9 + BOOTCHART_MAX); if (!p) { - r = log_oom(); + log_oom(); return; } @@ -332,7 +331,7 @@ int main(int argc, char *argv[]) { log_uptime(); - LIST_HEAD_INIT(struct list_sample_data, head); + LIST_HEAD_INIT(head); /* main program loop */ for (samples = 0; !exiting && samples < arg_samples_len; samples++) { @@ -406,7 +405,7 @@ int main(int argc, char *argv[]) { /* calculate how many samples we lost and scrap them */ arg_samples_len -= (int)(newint_ns / interval); } - LIST_PREPEND(struct list_sample_data, link, head, sampledata); + LIST_PREPEND(link, head, sampledata); } /* do some cleanup, close fd's */