Browse Source

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>
main
David Gibson 15 years ago committed by Jon Loeliger
parent
commit
8765874963
  1. 7
      util.c

7
util.c

@ -17,7 +17,12 @@ @@ -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)
{

Loading…
Cancel
Save