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>
This commit is contained in:
David Gibson 2010-03-03 16:38:01 +11:00 committed by Jon Loeliger
parent 9dfb495f80
commit 8765874963
1 changed files with 6 additions and 1 deletions

7
util.c
View File

@ -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)
{