summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2010-03-03 16:38:01 +1100
committerJon Loeliger <jdl@jdl.com>2010-03-03 07:55:54 -0600
commit8765874963852b2733777e69686251205238ad3d (patch)
tree136ab0a27b5c6c0bc8dd6d0b4aeed7062bada99d /util.c
parent9dfb495f80a8d4b63ad281001625ad2a5bb20472 (diff)
downloaddtc-8765874963852b2733777e69686251205238ad3d.tar.gz
dtc: Correct headers in util.c
Since util.c is used in programs other than full dtc, it shouldn't include the full dtc.h, just util.h which has prototypes directly relevant to it. This patch makes the change, and also adds includes of the necessary system headers which were previously included indirectly by dtc.h. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/util.c b/util.c
index c1d3ca4..d7ac27d 100644
--- a/util.c
+++ b/util.c
@@ -17,7 +17,12 @@
* USA
*/
-#include "dtc.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+
+#include "util.h"
char *xstrdup(const char *s)
{