summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/zconf.l
diff options
context:
space:
mode:
authorJosh Triplett2009-10-15 21:13:36 +0200
committerJosh Triplett2009-11-16 00:00:16 +0100
commit65166571800af0f63f21e5576d7db12d2bf73790 (patch)
tree42bae137b3966ff60c28619cd22c84cf20ec1c79 /scripts/kconfig/zconf.l
parentkconfig: Make zconf.y work with current bison (diff)
downloadkernel-qcow2-linux-65166571800af0f63f21e5576d7db12d2bf73790.tar.gz
kernel-qcow2-linux-65166571800af0f63f21e5576d7db12d2bf73790.tar.xz
kernel-qcow2-linux-65166571800af0f63f21e5576d7db12d2bf73790.zip
kconfig: Mark various internal functions static
kconfig's keyword hash, lexer, and parser define various functions used only locally. Declare these functions as static, and regenerate the corresponding generated files. Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'scripts/kconfig/zconf.l')
-rw-r--r--scripts/kconfig/zconf.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l
index 21ff69c9ad4e..d8f7236cb0a3 100644
--- a/scripts/kconfig/zconf.l
+++ b/scripts/kconfig/zconf.l
@@ -39,7 +39,7 @@ static int last_ts, first_ts;
static void zconf_endhelp(void);
static void zconf_endfile(void);
-void new_string(void)
+static void new_string(void)
{
text = malloc(START_STRSIZE);
text_asize = START_STRSIZE;
@@ -47,7 +47,7 @@ void new_string(void)
*text = 0;
}
-void append_string(const char *str, int size)
+static void append_string(const char *str, int size)
{
int new_size = text_size + size + 1;
if (new_size > text_asize) {
@@ -61,7 +61,7 @@ void append_string(const char *str, int size)
text[text_size] = 0;
}
-void alloc_string(const char *str, int size)
+static void alloc_string(const char *str, int size)
{
text = malloc(size + 1);
memcpy(text, str, size);