From 9f8c312911fa39e2ceeeafc41aa2838b5391ade3 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Mon, 20 Dec 2010 08:29:54 +0000 Subject: [PATCH] Add __unused. Ansi prototypes. --- libexec/getty/chat.c | 8 +++----- libexec/getty/main.c | 6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c index bc5a963c8a35..8fb8aad7a56d 100644 --- a/libexec/getty/chat.c +++ b/libexec/getty/chat.c @@ -23,10 +23,8 @@ * For semi-intelligent modem handling. */ -#ifndef lint -static const char rcsid[] = - "$FreeBSD$"; -#endif /* not lint */ +#include +__FBSDID("$FreeBSD$"); #include #include @@ -78,7 +76,7 @@ static int chat_send(char const *); */ static void -chat_alrm(int signo) +chat_alrm(int signo __unused) { int on = 1; diff --git a/libexec/getty/main.c b/libexec/getty/main.c index ced1573df70a..d61802575df3 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -41,9 +41,9 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)from: main.c 8.1 (Berkeley) 6/20/93"; #endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#include +__FBSDID("$FreeBSD$"); #include #include @@ -799,7 +799,7 @@ putf(const char *cp) * Read a gettytab database entry and perform necessary quirks. */ static void -dogettytab() +dogettytab(void) { /* Read the database entry. */