From 99dc2b1abffbdaaef9bc74b24c72853c49657456 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 5 Jan 2008 13:29:24 +0000 Subject: [PATCH] Define is_listed() as static and add its prototype. --- ChangeLog | 2 ++ libmisc/console.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e90decc6..941c7df8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ libmisc/pwd_init.c, libmisc/tz.c, lib/port.c, lib/fputsx.c: Include "prototypes.h" to make sure the exported prototypes are the ones used for the definition of functions. + * libmisc/console.c: Define is_listed() as static and add its + prototype. 2008-01-01 Nicolas François diff --git a/libmisc/console.c b/libmisc/console.c index 112d78b4..388587c4 100644 --- a/libmisc/console.c +++ b/libmisc/console.c @@ -34,13 +34,15 @@ #ident "$Id$" +/* local function prototypes */ +static int is_listed (const char *cfgin, const char *tty, int def); /* * This is now rather generic function which decides if "tty" is listed * under "cfgin" in config (directly or indirectly). Fallback to default if * something is bad. */ -int is_listed (const char *cfgin, const char *tty, int def) +static int is_listed (const char *cfgin, const char *tty, int def) { FILE *fp; char buf[200], *cons, *s;