summaryrefslogtreecommitdiff
path: root/src/test
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/test
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/test')
-rw-r--r--src/test/test-af-list.c4
-rw-r--r--src/test/test-arphrd-list.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test-af-list.c b/src/test/test-af-list.c
index b773de60e7..21115e677a 100644
--- a/src/test/test-af-list.c
+++ b/src/test/test-af-list.c
@@ -26,9 +26,9 @@
static const struct af_name* lookup_af(register const char *str, register unsigned int len);
-#include "af-from-name.h"
+#include "basic/af-from-name.h"
#include "basic/af-list.h"
-#include "af-to-name.h"
+#include "basic/af-to-name.h"
int main(int argc, const char *argv[]) {
diff --git a/src/test/test-arphrd-list.c b/src/test/test-arphrd-list.c
index f24871398e..976958e733 100644
--- a/src/test/test-arphrd-list.c
+++ b/src/test/test-arphrd-list.c
@@ -26,9 +26,9 @@
static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
-#include "arphrd-from-name.h"
+#include "basic/arphrd-from-name.h"
#include "basic/arphrd-list.h"
-#include "arphrd-to-name.h"
+#include "basic/arphrd-to-name.h"
int main(int argc, const char *argv[]) {