X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fexecute.c;h=8f09233e3ea5ee0b4b1f8fb10aea902bcb2bb621;hb=7759ecb21e2057eacf2dbd111d2f13ea10bff844;hp=3f7ca52139801ddc2606257100fa4d07b1618719;hpb=970edce6efcd3a0cf284aa0f43e0b27ecbd415f5;p=elogind.git diff --git a/src/core/execute.c b/src/core/execute.c index 3f7ca5213..8f09233e3 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -511,7 +511,7 @@ fail: return r; } -_printf_attr_(1, 2) static int write_confirm_message(const char *format, ...) { +_printf_(1, 2) static int write_confirm_message(const char *format, ...) { int fd; va_list ap; @@ -1706,7 +1706,7 @@ void exec_command_free_list(ExecCommand *c) { ExecCommand *i; while ((i = c)) { - LIST_REMOVE(ExecCommand, command, c, i); + LIST_REMOVE(command, c, i); exec_command_done(i); free(i); } @@ -2194,8 +2194,8 @@ void exec_command_append_list(ExecCommand **l, ExecCommand *e) { if (*l) { /* It's kind of important, that we keep the order here */ - LIST_FIND_TAIL(ExecCommand, command, *l, end); - LIST_INSERT_AFTER(ExecCommand, command, *l, end, e); + LIST_FIND_TAIL(command, *l, end); + LIST_INSERT_AFTER(command, *l, end, e); } else *l = e; }