From: David Gibson Subject: dtc: Correct headers in util.c Date: Wed, 3 Mar 2010 16:38:01 +1100 Message-ID: <20100303053801.GR23435@yookeroo> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Jon Loeliger Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org 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 Index: dtc/util.c =================================================================== --- dtc.orig/util.c 2010-03-03 16:34:25.029011952 +1100 +++ dtc/util.c 2010-03-03 16:35:18.655986458 +1100 @@ -17,7 +17,12 @@ * USA */ -#include "dtc.h" +#include +#include +#include +#include + +#include "util.h" char *xstrdup(const char *s) { -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson