]> granicus.if.org Git - shadow/commitdiff
Define is_listed() as static and add its prototype.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 5 Jan 2008 13:29:24 +0000 (13:29 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 5 Jan 2008 13:29:24 +0000 (13:29 +0000)
ChangeLog
libmisc/console.c

index e90decc6f98087f92217ed7a05a50f64a9662cff..941c7df83e5cbad9e4f71d96fd998d5d87400855 100644 (file)
--- 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  <nicolas.francois@centraliens.net>
 
index 112d78b48ded2d490bd15ee0a7b62c9fad528916..388587c40b10386ea19f639db62b2874aa55f5fe 100644 (file)
 
 #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;