]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
* libmisc/obscure.c: Tag the `old' parameter of palindrome(),
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 6 Jan 2008 13:20:25 +0000 (13:20 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 6 Jan 2008 13:20:25 +0000 (13:20 +0000)
  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().

ChangeLog
libmisc/getdate.y
libmisc/loginprompt.c
libmisc/obscure.c
src/expiry.c
src/login.c
src/su.c
src/sulogin.c

index 95335ff1897ee06fd2c664533b3b77e1bf6672ba..c4ff0392c47eafd00b39bd47ba6c0b80e3dc6abf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2008-01-06  Nicolas François  <nicolas.francois@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@centraliens.net>
 
        * lib/defines.h: Remove teh macro definition of SETXXENT_TYPE,
index 134b3f19d40f3eea93307ab69e83a0a1956088a5..11579f3744c968d7aeee1cf5cfef6e2769414540 100644 (file)
 #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 @@ static TABLE const MilitaryTable[] = {
 \f
 
 
-/* ARGSUSED */
-static int yyerror (char *s)
+static int yyerror (unused const char *s)
 {
   return 0;
 }
@@ -762,7 +761,7 @@ static int LookupWord (char *buff)
 }
 
 static int
-yylex ()
+yylex (void)
 {
   register char c;
   register char *p;
index b908f5ffce5470b235dc6c58e9fb98e093d9cef8..825c3d233307388929a2dfd5f37d1911cc549f10 100644 (file)
@@ -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);
 }
index 1a931d4292ca348155459ec4c7d89b24167d9a57..541526b70098d34da468f775460ff5ce083de026 100644 (file)
@@ -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;
index f1aeb1db26b1ff3b2241ac72d3326c923cad6eea..1a66d7f5556bee0b617b3c09d4d2f5d1041d6fd5 100644 (file)
@@ -44,7 +44,7 @@ static void usage (void);
 /*
  * catch_signals - signal catcher
  */
-static RETSIGTYPE catch_signals (int sig)
+static RETSIGTYPE catch_signals (unused int sig)
 {
        exit (10);
 }
index f78c568c4d27da2193f44edb25c16e82f579f9da..8dcb755c9a0c4c51cb3359cdc064cc7a2b79495e 100644 (file)
@@ -290,7 +290,7 @@ static void init_env (void)
 }
 
 
-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);
index 9917a2ccd89983ce4b1e7ac7e44fc4c2dc07a853..ac5e483a748bfcd55db88f0536e1048ca563d6ea 100644 (file)
--- a/src/su.c
+++ b/src/su.c
@@ -164,7 +164,7 @@ static void su_failure (const char *tty)
 
 #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 @@ int main (int argc, char **argv)
 #else                          /* !USE_PAM */
        int err = 0;
 
-       RETSIGTYPE (*oldsig) ();
+       RETSIGTYPE (*oldsig) (int);
        int is_console = 0;
 
        struct spwd *spwd = 0;
index bc1b119d00222b3a258ad2380bc4aba28e85771d..99efc78173b05fc95d26bd40ebfaf7e6089c9b60 100644 (file)
@@ -61,7 +61,7 @@ extern char **environ;
 /* local function prototypes */
 static RETSIGTYPE catch_signals (int);
 
-static RETSIGTYPE catch_signals (int sig)
+static RETSIGTYPE catch_signals (unused int sig)
 {
        exit (1);
 }