diff options
author | Karel Zak | 2011-08-01 15:36:17 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-01 15:36:17 +0200 |
commit | 878a369792348d31f97d77ba27426ce18eb9f45d (patch) | |
tree | 06c00ce377f915ee5c94c73eea241980b04fa450 /login-utils/login.c | |
parent | cfdisk: fix compiler warnings [-Wunused-parameter] (diff) | |
download | kernel-qcow2-util-linux-878a369792348d31f97d77ba27426ce18eb9f45d.tar.gz kernel-qcow2-util-linux-878a369792348d31f97d77ba27426ce18eb9f45d.tar.xz kernel-qcow2-util-linux-878a369792348d31f97d77ba27426ce18eb9f45d.zip |
login: fix compiler warnings [-Wunused-parameter -Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/login.c')
-rw-r--r-- | login-utils/login.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/login-utils/login.c b/login-utils/login.c index 74e0cdd15..554e5a28c 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); } |