summaryrefslogtreecommitdiff
path: root/src/grp-machine/grp-import/systemd-pull
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-09-11 22:56:30 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-09-11 22:56:30 -0400
commitfa89550518af96a8804749c0ab0916599a94c1da (patch)
tree57db50190ad4bcdbc9ef54efc528db4286daedac /src/grp-machine/grp-import/systemd-pull
parentf4b50a2aa19f5a99008565f4127952ea8f2e4f61 (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-machine/grp-import/systemd-pull')
-rw-r--r--src/grp-machine/grp-import/systemd-pull/pull-job.h4
-rw-r--r--src/grp-machine/grp-import/systemd-pull/pull-raw.c2
-rw-r--r--src/grp-machine/grp-import/systemd-pull/pull-tar.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/grp-machine/grp-import/systemd-pull/pull-job.h b/src/grp-machine/grp-import/systemd-pull/pull-job.h
index d8308e4046..296e32bd09 100644
--- a/src/grp-machine/grp-import/systemd-pull/pull-job.h
+++ b/src/grp-machine/grp-import/systemd-pull/pull-job.h
@@ -22,11 +22,11 @@
#include <gcrypt.h>
#include "basic/macro.h"
-#include "curl-util.h"
#include "import-compress.h"
-typedef struct PullJob PullJob;
+#include "curl-util.h"
+typedef struct PullJob PullJob;
typedef void (*PullJobFinished)(PullJob *job);
typedef int (*PullJobOpenDisk)(PullJob *job);
typedef int (*PullJobHeader)(PullJob *job, const char *header, size_t sz);
diff --git a/src/grp-machine/grp-import/systemd-pull/pull-raw.c b/src/grp-machine/grp-import/systemd-pull/pull-raw.c
index 59257d6a0c..9602915a1f 100644
--- a/src/grp-machine/grp-import/systemd-pull/pull-raw.c
+++ b/src/grp-machine/grp-import/systemd-pull/pull-raw.c
@@ -41,11 +41,11 @@
#include "basic/utf8.h"
#include "basic/util.h"
#include "basic/web-util.h"
-#include "curl-util.h"
#include "import-common.h"
#include "qcow2-util.h"
#include "shared/import-util.h"
+#include "curl-util.h"
#include "pull-common.h"
#include "pull-job.h"
#include "pull-raw.h"
diff --git a/src/grp-machine/grp-import/systemd-pull/pull-tar.c b/src/grp-machine/grp-import/systemd-pull/pull-tar.c
index e6031db0ed..121ca31dbd 100644
--- a/src/grp-machine/grp-import/systemd-pull/pull-tar.c
+++ b/src/grp-machine/grp-import/systemd-pull/pull-tar.c
@@ -39,10 +39,10 @@
#include "basic/utf8.h"
#include "basic/util.h"
#include "basic/web-util.h"
-#include "curl-util.h"
#include "import-common.h"
#include "shared/import-util.h"
+#include "curl-util.h"
#include "pull-common.h"
#include "pull-job.h"
#include "pull-tar.h"