diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-11 22:56:30 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-09-11 22:56:30 -0400 |
commit | fa89550518af96a8804749c0ab0916599a94c1da (patch) | |
tree | 57db50190ad4bcdbc9ef54efc528db4286daedac /src/grp-coredump | |
parent | f4b50a2aa19f5a99008565f4127952ea8f2e4f61 (diff) |
Run the new fixup script.
The biggest change is that it keeps looking for new #include
blocks. This means that it (more) correctly handles #ifdef'd
#includes.
I'm not 100% in love with it, but it's pretty good for automated.
What I really don't like is it did some silly things with newlines
in typedef blocks. I've avoided committing those. I think it may
be possible to get it to do the right thing. But really, the
typedef blocks are a hack for poorly structured headers.
Now that it keeps looking for new #include blocks, I could strip
out the typedef support, and it would mostly work; but it wouldn't
be able to move some headers back to the top.
IDK what to do.
Diffstat (limited to 'src/grp-coredump')
-rw-r--r-- | src/grp-coredump/systemd-coredump/coredump.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/grp-coredump/systemd-coredump/coredump.c b/src/grp-coredump/systemd-coredump/coredump.c index 8f291e6bd8..b1da8eaba4 100644 --- a/src/grp-coredump/systemd-coredump/coredump.c +++ b/src/grp-coredump/systemd-coredump/coredump.c @@ -28,25 +28,20 @@ #include <elfutils/libdwfl.h> #endif +#include <systemd/sd-daemon.h> #include <systemd/sd-journal.h> #include <systemd/sd-login.h> -#include <systemd/sd-daemon.h> -#include "shared/acl-util.h" #include "basic/alloc-util.h" #include "basic/capability-util.h" #include "basic/cgroup-util.h" -#include "sd-journal/compress.h" -#include "shared/conf-parser.h" #include "basic/copy.h" -#include "coredump-vacuum.h" #include "basic/dirent-util.h" #include "basic/escape.h" #include "basic/fd-util.h" #include "basic/fileio.h" #include "basic/fs-util.h" #include "basic/io-util.h" -#include "journald-native.h" #include "basic/log.h" #include "basic/macro.h" #include "basic/missing.h" @@ -55,12 +50,18 @@ #include "basic/process-util.h" #include "basic/socket-util.h" #include "basic/special.h" -#include "stacktrace.h" #include "basic/string-table.h" #include "basic/string-util.h" #include "basic/strv.h" #include "basic/user-util.h" #include "basic/util.h" +#include "journald-native.h" +#include "sd-journal/compress.h" +#include "shared/acl-util.h" +#include "shared/conf-parser.h" + +#include "coredump-vacuum.h" +#include "stacktrace.h" /* The maximum size up to which we process coredumps */ #define PROCESS_SIZE_MAX ((uint64_t) (2LLU*1024LLU*1024LLU*1024LLU)) |