From owner-svn-src-all@FreeBSD.ORG Sun Dec 19 14:18:08 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 25B8E106566B; Sun, 19 Dec 2010 14:18:08 +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 1487D8FC19; Sun, 19 Dec 2010 14:18:08 +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 oBJEI75T084061; Sun, 19 Dec 2010 14:18:07 GMT (envelope-from charnier@svn.freebsd.org) Received: (from charnier@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oBJEI7ex084059; Sun, 19 Dec 2010 14:18:07 GMT (envelope-from charnier@svn.freebsd.org) Message-Id: <201012191418.oBJEI7ex084059@svn.freebsd.org> From: Philippe Charnier Date: Sun, 19 Dec 2010 14:18:07 +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: r216562 - head/usr.bin/mail 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: Sun, 19 Dec 2010 14:18:08 -0000 Author: charnier Date: Sun Dec 19 14:18:07 2010 New Revision: 216562 URL: http://svn.freebsd.org/changeset/base/216562 Log: Add __unused. Ansi prototypes. Modified: head/usr.bin/mail/cmd1.c Modified: head/usr.bin/mail/cmd1.c ============================================================================== --- head/usr.bin/mail/cmd1.c Sun Dec 19 13:40:38 2010 (r216561) +++ head/usr.bin/mail/cmd1.c Sun Dec 19 14:18:07 2010 (r216562) @@ -54,8 +54,7 @@ extern const struct cmd cmdtab[]; static int screen; int -headers(msgvec) - int *msgvec; +headers(int *msgvec) { int n, mesg, flag, size; struct message *mp; @@ -94,8 +93,7 @@ headers(msgvec) * Scroll to the next/previous screen */ int -scroll(arg) - char arg[]; +scroll(char arg[]) { int s, size; int cur[1]; @@ -133,7 +131,7 @@ scroll(arg) * Compute screen size. */ int -screensize() +screensize(void) { int s; char *cp; @@ -148,8 +146,7 @@ screensize() * in the passed message list. */ int -from(msgvec) - int *msgvec; +from(int *msgvec) { int *ip; @@ -165,8 +162,7 @@ from(msgvec) * This is a slight improvement to the standard one. */ void -printhead(mesg) - int mesg; +printhead(int mesg) { struct message *mp; char headline[LINESIZE], wcount[LINESIZE], *subjline, dispc, curind; @@ -212,7 +208,7 @@ printhead(mesg) * Print out the value of dot. */ int -pdot() +pdot(void) { printf("%d\n", dot - &message[0] + 1); return (0); @@ -222,7 +218,7 @@ pdot() * Print out all the possible commands. */ int -pcmdlist() +pcmdlist(void) { const struct cmd *cp; int cc; @@ -246,8 +242,7 @@ pcmdlist() * Paginate messages, honor ignored fields. */ int -more(msgvec) - int *msgvec; +more(int *msgvec) { return (type1(msgvec, 1, 1)); @@ -257,8 +252,7 @@ more(msgvec) * Paginate messages, even printing ignored fields. */ int -More(msgvec) - int *msgvec; +More(int *msgvec) { return (type1(msgvec, 0, 1)); @@ -268,8 +262,7 @@ More(msgvec) * Type out messages, honor ignored fields. */ int -type(msgvec) - int *msgvec; +type(int *msgvec) { return (type1(msgvec, 1, 0)); @@ -279,8 +272,7 @@ type(msgvec) * Type out messages, even printing ignored fields. */ int -Type(msgvec) - int *msgvec; +Type(int *msgvec) { return (type1(msgvec, 0, 0)); @@ -291,9 +283,7 @@ Type(msgvec) */ static jmp_buf pipestop; int -type1(msgvec, doign, page) - int *msgvec; - int doign, page; +type1(int *msgvec, int doign, int page) { int nlines, *ip; struct message *mp; @@ -354,8 +344,7 @@ close_pipe: */ /*ARGSUSED*/ void -brokpipe(signo) - int signo; +brokpipe(int signo __unused) { longjmp(pipestop, 1); } @@ -366,8 +355,7 @@ brokpipe(signo) * and defaults to 5. */ int -top(msgvec) - int *msgvec; +top(int *msgvec) { int *ip; struct message *mp; @@ -408,8 +396,7 @@ top(msgvec) * get mboxed. */ int -stouch(msgvec) - int msgvec[]; +stouch(int msgvec[]) { int *ip; @@ -425,8 +412,7 @@ stouch(msgvec) * Make sure all passed messages get mboxed. */ int -mboxit(msgvec) - int msgvec[]; +mboxit(int msgvec[]) { int *ip; @@ -442,7 +428,7 @@ mboxit(msgvec) * List the folders the user currently has. */ int -folders() +folders(void) { char dirname[PATHSIZE]; char *cmd; @@ -462,8 +448,7 @@ folders() * come in since we started reading mail. */ int -inc(v) - void *v; +inc(void *v __unused) { int nmsg, mdot;