[PATCH] games/pig cleanup

看板DFBSD_submit作者時間20年前 (2005/04/25 13:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
--O82bwzp7nMTZS6dV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ANSI function declarations. WARNS6 cleanup. Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /ftp/pub/DragonFly/dcvs/src/games/pig/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- Makefile 17 Jun 2003 04:25:24 -0000 1.2 +++ Makefile 25 Apr 2005 04:22:51 -0000 @@ -4,5 +4,6 @@ =20 PROG=3D pig MAN=3D pig.6 +WARNS?=3D 6 =20 .include <bsd.prog.mk> Index: pig.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /ftp/pub/DragonFly/dcvs/src/games/pig/pig.c,v retrieving revision 1.3 diff -u -r1.3 pig.c --- pig.c 12 Nov 2003 14:53:53 -0000 1.3 +++ pig.c 25 Apr 2005 04:28:17 -0000 @@ -48,11 +48,9 @@ void usage (void); =20 int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char **argv) { - int len; + unsigned int len; int ch; char buf[1024]; =20 @@ -84,9 +82,7 @@ } =20 void -pigout(buf, len) - char *buf; - int len; +pigout(char *buf, int len) { int ch, start; int olen; @@ -115,7 +111,7 @@ } =20 void -usage() +usage(void) { (void)fprintf(stderr, "usage: pig\n"); exit(1); --O82bwzp7nMTZS6dV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCbHKgKjaxugguz8URAj2GAJ9qm70eBWEa5hsHrn3bY5WsUkz4KgCffIsN /xVeqF6oy+NSpca0DhcI6iw= =rFhc -----END PGP SIGNATURE----- --O82bwzp7nMTZS6dV--
文章代碼(AID): #12R7cP00 (DFBSD_submit)