Date: Thu, 28 May 2009 21:37:40 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r192997 - head/usr.bin/perror Message-ID: <200905282137.n4SLbeS6050548@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Thu May 28 21:37:40 2009 New Revision: 192997 URL: http://svn.freebsd.org/changeset/base/192997 Log: Use prototype for usage(). This makes perror(1) WARNS=6 clean. Approved by: gnn Modified: head/usr.bin/perror/perror.c Modified: head/usr.bin/perror/perror.c ============================================================================== --- head/usr.bin/perror/perror.c Thu May 28 21:19:21 2009 (r192996) +++ head/usr.bin/perror/perror.c Thu May 28 21:37:40 2009 (r192997) @@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$"); #include <err.h> #include <sys/errno.h> -static void usage(); +static void usage(void); int main(int argc, char **argv) @@ -62,7 +62,7 @@ main(int argc, char **argv) } static void -usage() +usage(void) { fprintf(stderr, "usage: perror number\n"); exit(1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905282137.n4SLbeS6050548>