summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2010-12-20 08:29:54 +0000
committercharnier <charnier@FreeBSD.org>2010-12-20 08:29:54 +0000
commit89b5c059300315fcb6ea4f0e602bbdf985e0aabd (patch)
tree9a2fd5fbc5874de7e2afec66aeddce63129333ea
parent691fb06610151cc8379bf7e600b5be3dc400082d (diff)
downloadFreeBSD-src-89b5c059300315fcb6ea4f0e602bbdf985e0aabd.zip
FreeBSD-src-89b5c059300315fcb6ea4f0e602bbdf985e0aabd.tar.gz
Add __unused. Ansi prototypes.
-rw-r--r--libexec/getty/chat.c8
-rw-r--r--libexec/getty/main.c6
2 files changed, 6 insertions, 8 deletions
diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c
index bc5a963..8fb8aad 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 <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/ioctl.h>
@@ -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 ced1573..d618025 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 <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/ioctl.h>
@@ -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. */
OpenPOWER on IntegriCloud