From owner-svn-src-all@FreeBSD.ORG Mon Dec 20 08:29:55 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 196241065675; Mon, 20 Dec 2010 08:29:55 +0000 (UTC) (envelope-from charnier@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 082948FC08; Mon, 20 Dec 2010 08:29:55 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oBK8Ts0B021710; Mon, 20 Dec 2010 08:29:54 GMT (envelope-from charnier@svn.freebsd.org) Received: (from charnier@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oBK8TsnU021707; Mon, 20 Dec 2010 08:29:54 GMT (envelope-from charnier@svn.freebsd.org) Message-Id: <201012200829.oBK8TsnU021707@svn.freebsd.org> From: Philippe Charnier Date: Mon, 20 Dec 2010 08:29:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216582 - head/libexec/getty X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2010 08:29:55 -0000 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 +__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; 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 +__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. */