diff --git a/Makefile b/Makefile
index 17007e1..7d81ace 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ clean:
@rm -vf $(TOOLS)
-$(TOOLS): Makefile sunxi-tools.h
+$(TOOLS): Makefile common.h
fex2bin: script.c script.h script_bin.h script_bin.c
bin2fex: script.h
diff --git a/bin2fex.c b/bin2fex.c
index 3728455..8777d38 100644
--- a/bin2fex.c
+++ b/bin2fex.c
@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-#include "sunxi-tools.h"
+#include "common.h"
#include "bin2fex.h"
#include
diff --git a/sunxi-tools.h b/common.h
similarity index 97%
rename from sunxi-tools.h
rename to common.h
index 769bae1..5717918 100644
--- a/sunxi-tools.h
+++ b/common.h
@@ -14,8 +14,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-#ifndef _SUNXI_TOOLS_H
-#define _SUNXI_TOOLS_H
+#ifndef _SUNXI_TOOLS_COMMON_H
+#define _SUNXI_TOOLS_COMMON_H
#include /* offsetof */
@@ -35,6 +35,10 @@
/** shortcut to printf to stderr */
#define errf(...) fprintf(stderr, __VA_ARGS__)
+/*
+ * list
+ */
+
/** a list hook */
struct list_entry {
struct list_entry *prev;
diff --git a/fex2bin.h b/fex2bin.h
index 9788112..2d2179c 100644
--- a/fex2bin.h
+++ b/fex2bin.h
@@ -17,7 +17,7 @@
#ifndef _SUNXI_TOOLS_FEX2BIN_H
#define _SUNXI_TOOLS_FEX2BIN_H
-#include "sunxi-tools.h"
+#include "common.h"
#include
diff --git a/script.c b/script.c
index 015e817..8a8c738 100644
--- a/script.c
+++ b/script.c
@@ -15,7 +15,7 @@
* along with this program. If not, see .
*/
-#include "sunxi-tools.h"
+#include "common.h"
#include
#include
diff --git a/script_bin.c b/script_bin.c
index 0a0d39b..c06b916 100644
--- a/script_bin.c
+++ b/script_bin.c
@@ -15,7 +15,7 @@
* along with this program. If not, see .
*/
-#include "sunxi-tools.h"
+#include "common.h"
#include
#include