[Pkg-shadow-commits] r1634 - in upstream/trunk: . libmisc

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sat Jan 5 13:29:25 UTC 2008


Author: nekral-guest
Date: 2008-01-05 13:29:24 +0000 (Sat, 05 Jan 2008)
New Revision: 1634

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/console.c
Log:
Define is_listed() as static and add its prototype.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-01-05 13:23:22 UTC (rev 1633)
+++ upstream/trunk/ChangeLog	2008-01-05 13:29:24 UTC (rev 1634)
@@ -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 at centraliens.net>
 

Modified: upstream/trunk/libmisc/console.c
===================================================================
--- upstream/trunk/libmisc/console.c	2008-01-05 13:23:22 UTC (rev 1633)
+++ upstream/trunk/libmisc/console.c	2008-01-05 13:29:24 UTC (rev 1634)
@@ -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;




More information about the Pkg-shadow-commits mailing list