diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2010-03-03 16:38:01 +1100 |
---|---|---|
committer | Jon Loeliger <jdl@jdl.com> | 2010-03-03 07:55:54 -0600 |
commit | 8765874963852b2733777e69686251205238ad3d (patch) | |
tree | 136ab0a27b5c6c0bc8dd6d0b4aeed7062bada99d /util.c | |
parent | 9dfb495f80a8d4b63ad281001625ad2a5bb20472 (diff) | |
download | dtc-8765874963852b2733777e69686251205238ad3d.zip dtc-8765874963852b2733777e69686251205238ad3d.tar.gz dtc-8765874963852b2733777e69686251205238ad3d.tar.bz2 |
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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) { |