aboutsummaryrefslogtreecommitdiff
path: root/configfile.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'configfile.c')
-rw-r--r--configfile.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/configfile.c b/configfile.c
index e039109..31fe5c8 100644
--- a/configfile.c
+++ b/configfile.c
@@ -1,12 +1,13 @@
/* configfile.c: parsing of config files
*
- * Copyright (C) 2006-2014 cgit Development Team <cgit@lists.zx2c4.com>
+ * Copyright (C) 2008 Lars Hjemli
*
* Licensed under GNU General Public License v2
* (see COPYING for full license text)
*/
-#include <git-compat-util.h>
+#include <ctype.h>
+#include <stdio.h>
#include "configfile.h"
static int next_char(FILE *f)
@@ -39,9 +40,7 @@ static int read_config_line(FILE *f, struct strbuf *name, struct strbuf *value)
/* Skip comments and preceding spaces. */
for(;;) {
- if (c == EOF)
- return 0;
- else if (c == '#' || c == ';')
+ if (c == '#' || c == ';')
skip_line(f);
else if (!isspace(c))
break;