From: Karel Zak Date: Mon, 1 Aug 2011 13:36:17 +0000 (+0200) Subject: login: fix compiler warnings [-Wunused-parameter -Wsign-compare] X-Git-Tag: v2.20-rc2~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=878a369792348d31f97d77ba27426ce18eb9f45d;p=thirdparty%2Futil-linux.git login: fix compiler warnings [-Wunused-parameter -Wsign-compare] Signed-off-by: Karel Zak --- diff --git a/login-utils/login.c b/login-utils/login.c index 74e0cdd15a..554e5a28cc 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -342,7 +342,7 @@ logaudit(const char *tty, const char *username, const char *hostname, audit_log_acct_message(audit_fd, AUDIT_USER_LOGIN, NULL, "login", username ? username : "(unknown)", - pwd ? pwd->pw_uid : -1, hostname, NULL, tty, status); + pwd ? pwd->pw_uid : (unsigned int) -1, hostname, NULL, tty, status); close(audit_fd); } @@ -1342,7 +1342,7 @@ getloginname(void) { */ static void -timedout2(int sig) { +timedout2(int sig __attribute__((__unused__))) { struct termios ti; /* reset echo */ @@ -1353,7 +1353,7 @@ timedout2(int sig) { } static void -timedout(int sig) { +timedout(int sig __attribute__((__unused__))) { signal(SIGALRM, timedout2); alarm(10); warnx(_("timed out after %d seconds"), timeout); @@ -1416,7 +1416,7 @@ motd(void) { } void -sigint(int sig) { +sigint(int sig __attribute__((__unused__))) { longjmp(motdinterrupt, 1); }