]> granicus.if.org Git - cgit/commitdiff
configfile.c: don't include system headers directly
authorJohn Keeping <john@keeping.me.uk>
Thu, 13 Aug 2015 11:14:16 +0000 (12:14 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 13 Aug 2015 13:37:28 +0000 (15:37 +0200)
git-compat-util.h may define various values that affect the
interpretation of system headers.  In most places we include cgit.h
first, which pulls in git-compat-util.h, but this file does not depend
on anything else in CGit, so use git-compat-util.h directly.

Signed-off-by: John Keeping <john@keeping.me.uk>
configfile.c

index 833f158e1a76469bbfdc9a1e5aac7dc0947a603f..5b0d880cb7d2d1da755b2f4bc621a6c460ef4df0 100644 (file)
@@ -6,8 +6,7 @@
  *   (see COPYING for full license text)
  */
 
-#include <ctype.h>
-#include <stdio.h>
+#include <git-compat-util.h>
 #include "configfile.h"
 
 static int next_char(FILE *f)