aboutsummaryrefslogtreecommitdiffstats
path: root/configfile.c
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2013-03-04 08:52:33 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2013-03-04 19:50:39 -0500
commitbafab423f20bc1448b293842c235965e1681f07e (patch)
tree18c4bef1e4714c4abd20b8e1d5ec04db3ae3b9ac /configfile.c
parentd5a43b429a4248a02e3a403f76fff0cbae92ef32 (diff)
downloadcgit-bafab423f20bc1448b293842c235965e1681f07e.tar.gz
cgit-bafab423f20bc1448b293842c235965e1681f07e.tar.bz2
cgit-bafab423f20bc1448b293842c235965e1681f07e.zip
Mark several functions/variables static
Spotted by parsing the output of `gcc -Wmissing-prototypes [...]`. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'configfile.c')
-rw-r--r--configfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/configfile.c b/configfile.c
index 3fa217f..d98989c 100644
--- a/configfile.c
+++ b/configfile.c
@@ -10,7 +10,7 @@
#include <stdio.h>
#include "configfile.h"
-int next_char(FILE *f)
+static int next_char(FILE *f)
{
int c = fgetc(f);
if (c == '\r') {
@@ -23,7 +23,7 @@ int next_char(FILE *f)
return c;
}
-void skip_line(FILE *f)
+static void skip_line(FILE *f)
{
int c;
@@ -31,7 +31,7 @@ void skip_line(FILE *f)
;
}
-int read_config_line(FILE *f, char *line, const char **value, int bufsize)
+static int read_config_line(FILE *f, char *line, const char **value, int bufsize)
{
int i = 0, isname = 0;