Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Dec 2010 08:29:54 +0000 (UTC)
From:      Philippe Charnier <charnier@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216582 - head/libexec/getty
Message-ID:  <201012200829.oBK8TsnU021707@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: charnier
Date: Mon Dec 20 08:29:54 2010
New Revision: 216582
URL: http://svn.freebsd.org/changeset/base/216582

Log:
  Add __unused. Ansi prototypes.

Modified:
  head/libexec/getty/chat.c
  head/libexec/getty/main.c

Modified: head/libexec/getty/chat.c
==============================================================================
--- head/libexec/getty/chat.c	Mon Dec 20 00:27:40 2010	(r216581)
+++ head/libexec/getty/chat.c	Mon Dec 20 08:29:54 2010	(r216582)
@@ -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;
 

Modified: head/libexec/getty/main.c
==============================================================================
--- head/libexec/getty/main.c	Mon Dec 20 00:27:40 2010	(r216581)
+++ head/libexec/getty/main.c	Mon Dec 20 08:29:54 2010	(r216582)
@@ -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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012200829.oBK8TsnU021707>