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

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sun Jan 6 13:20:26 UTC 2008


Author: nekral-guest
Date: 2008-01-06 13:20:25 +0000 (Sun, 06 Jan 2008)
New Revision: 1668

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/getdate.y
   upstream/trunk/libmisc/loginprompt.c
   upstream/trunk/libmisc/obscure.c
   upstream/trunk/src/expiry.c
   upstream/trunk/src/login.c
   upstream/trunk/src/su.c
   upstream/trunk/src/sulogin.c
Log:
* libmisc/obscure.c: Tag the `old' parameter of palindrome(),
  similar(), and simple() as unused.
* libmisc/loginprompt.c: Tag the `sig' parameter of login_exit()
  as unused.
* src/expiry.c: Tag the `sig' parameter of catch_signals() as
  unused.
* src/su.c: Tag the `sig' parameter of catch_signals() as unused.
* src/su.c: Add int parameter to the prototype of oldsig().
* src/login.c: Tag the `sig' parameter of alarm_handler() as
  unused.
* src/sulogin.c: Tag the `sig' parameter of catch_signals() as
  unused.
* libmisc/getdate.y: Tag the `string' parameter of yyerror() as
  unused.
* libmisc/getdate.y: The string provided to yyerror() is const.
* libmisc/getdate.y: Fix the prototypes of yylex() and yyerror().


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-01-06 13:12:09 UTC (rev 1667)
+++ upstream/trunk/ChangeLog	2008-01-06 13:20:25 UTC (rev 1668)
@@ -1,5 +1,24 @@
 2008-01-06  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* libmisc/obscure.c: Tag the `old' parameter of palindrome(),
+	similar(), and simple() as unused.
+	* libmisc/loginprompt.c: Tag the `sig' parameter of login_exit()
+	as unused.
+	* src/expiry.c: Tag the `sig' parameter of catch_signals() as
+	unused.
+	* src/su.c: Tag the `sig' parameter of catch_signals() as unused.
+	* src/su.c: Add int parameter to the prototype of oldsig().
+	* src/login.c: Tag the `sig' parameter of alarm_handler() as
+	unused.
+	* src/sulogin.c: Tag the `sig' parameter of catch_signals() as
+	unused.
+	* libmisc/getdate.y: Tag the `string' parameter of yyerror() as
+	unused.
+	* libmisc/getdate.y: The string provided to yyerror() is const.
+	* libmisc/getdate.y: Fix the prototypes of yylex() and yyerror().
+
+2008-01-06  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* lib/defines.h: Remove teh macro definition of SETXXENT_TYPE,
 	SETXXENT_RET, and SETXXENT_TEST. They were used by the now
 	removed pwent.c and grent.c.

Modified: upstream/trunk/libmisc/getdate.y
===================================================================
--- upstream/trunk/libmisc/getdate.y	2008-01-06 13:12:09 UTC (rev 1667)
+++ upstream/trunk/libmisc/getdate.y	2008-01-06 13:20:25 UTC (rev 1668)
@@ -112,8 +112,8 @@
 #define yytable  gd_yytable
 #define yycheck  gd_yycheck
 
-static int yylex ();
-static int yyerror (char *s);
+static int yylex (void);
+static int yyerror (const char *s);
 
 #define EPOCH		1970
 #define HOUR(x)		((x) * 60)
@@ -595,8 +595,7 @@
 
 
 
-/* ARGSUSED */
-static int yyerror (char *s)
+static int yyerror (unused const char *s)
 {
   return 0;
 }
@@ -762,7 +761,7 @@
 }
 
 static int
-yylex ()
+yylex (void)
 {
   register char c;
   register char *p;

Modified: upstream/trunk/libmisc/loginprompt.c
===================================================================
--- upstream/trunk/libmisc/loginprompt.c	2008-01-06 13:12:09 UTC (rev 1667)
+++ upstream/trunk/libmisc/loginprompt.c	2008-01-06 13:20:25 UTC (rev 1668)
@@ -37,7 +37,8 @@
 #include "prototypes.h"
 #include "defines.h"
 #include "getdef.h"
-static void login_exit (int sig)
+
+static void login_exit (unused int sig)
 {
 	exit (1);
 }

Modified: upstream/trunk/libmisc/obscure.c
===================================================================
--- upstream/trunk/libmisc/obscure.c	2008-01-06 13:12:09 UTC (rev 1667)
+++ upstream/trunk/libmisc/obscure.c	2008-01-06 13:20:25 UTC (rev 1668)
@@ -47,7 +47,7 @@
 /*
  * can't be a palindrome - like `R A D A R' or `M A D A M'
  */
- /*ARGSUSED*/ static int palindrome (const char *old, const char *new)
+static int palindrome (unused const char *old, const char *new)
 {
 	int i, j;
 
@@ -64,7 +64,7 @@
  * more than half of the characters are different ones.
  */
 
- /*ARGSUSED*/ static int similar (const char *old, const char *new)
+static int similar (const char *old, const char *new)
 {
 	int i, j;
 
@@ -91,7 +91,7 @@
  * a nice mix of characters.
  */
 
- /*ARGSUSED*/ static int simple (const char *old, const char *new)
+static int simple (unused const char *old, const char *new)
 {
 	int digits = 0;
 	int uppers = 0;

Modified: upstream/trunk/src/expiry.c
===================================================================
--- upstream/trunk/src/expiry.c	2008-01-06 13:12:09 UTC (rev 1667)
+++ upstream/trunk/src/expiry.c	2008-01-06 13:20:25 UTC (rev 1668)
@@ -44,7 +44,7 @@
 /*
  * catch_signals - signal catcher
  */
-static RETSIGTYPE catch_signals (int sig)
+static RETSIGTYPE catch_signals (unused int sig)
 {
 	exit (10);
 }

Modified: upstream/trunk/src/login.c
===================================================================
--- upstream/trunk/src/login.c	2008-01-06 13:12:09 UTC (rev 1667)
+++ upstream/trunk/src/login.c	2008-01-06 13:20:25 UTC (rev 1668)
@@ -290,7 +290,7 @@
 }
 
 
-static RETSIGTYPE alarm_handler (int sig)
+static RETSIGTYPE alarm_handler (unused int sig)
 {
 	fprintf (stderr, _("\nLogin timed out after %d seconds.\n"), timeout);
 	exit (0);

Modified: upstream/trunk/src/su.c
===================================================================
--- upstream/trunk/src/su.c	2008-01-06 13:12:09 UTC (rev 1667)
+++ upstream/trunk/src/su.c	2008-01-06 13:20:25 UTC (rev 1668)
@@ -164,7 +164,7 @@
 
 #ifdef USE_PAM
 /* Signal handler for parent process later */
-static void catch_signals (int sig)
+static void catch_signals (unused int sig)
 {
 	++caught;
 }
@@ -316,7 +316,7 @@
 #else				/* !USE_PAM */
 	int err = 0;
 
-	RETSIGTYPE (*oldsig) ();
+	RETSIGTYPE (*oldsig) (int);
 	int is_console = 0;
 
 	struct spwd *spwd = 0;

Modified: upstream/trunk/src/sulogin.c
===================================================================
--- upstream/trunk/src/sulogin.c	2008-01-06 13:12:09 UTC (rev 1667)
+++ upstream/trunk/src/sulogin.c	2008-01-06 13:20:25 UTC (rev 1668)
@@ -61,7 +61,7 @@
 /* local function prototypes */
 static RETSIGTYPE catch_signals (int);
 
-static RETSIGTYPE catch_signals (int sig)
+static RETSIGTYPE catch_signals (unused int sig)
 {
 	exit (1);
 }




More information about the Pkg-shadow-commits mailing list