summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoruqs <uqs@FreeBSD.org>2010-02-15 14:30:37 +0000
committeruqs <uqs@FreeBSD.org>2010-02-15 14:30:37 +0000
commita3f626e47df875683ce44cadfb4f786b16e5de34 (patch)
treeb9857fb5215511b0ebeddd34d92db5b5c8a1d3f9 /games
parent7303437c35d59ae346f0d75db845bb5f34d3cd06 (diff)
downloadFreeBSD-src-a3f626e47df875683ce44cadfb4f786b16e5de34.zip
FreeBSD-src-a3f626e47df875683ce44cadfb4f786b16e5de34.tar.gz
grdc(6) make WARNS=6 clean and bump accordingly
Approved by: ed (Co-mentor)
Diffstat (limited to 'games')
-rw-r--r--games/grdc/Makefile10
-rw-r--r--games/grdc/grdc.c24
2 files changed, 16 insertions, 18 deletions
diff --git a/games/grdc/Makefile b/games/grdc/Makefile
index 0aeea1e..3971380 100644
--- a/games/grdc/Makefile
+++ b/games/grdc/Makefile
@@ -1,9 +1,9 @@
# $FreeBSD$
-PROG= grdc
-WARNS?= 2
-MAN= grdc.6
-DPADD= ${LIBNCURSES}
-LDADD= -lncurses
+PROG= grdc
+MAN= grdc.6
+WARNS?= 6
+DPADD= ${LIBNCURSES}
+LDADD= -lncurses
.include <bsd.prog.mk>
diff --git a/games/grdc/grdc.c b/games/grdc/grdc.c
index c467b53..7586be6 100644
--- a/games/grdc/grdc.c
+++ b/games/grdc/grdc.c
@@ -48,24 +48,22 @@ void movto(int, int);
void sighndl(int);
void usage(void);
-void sighndl(signo)
-int signo;
+void
+sighndl(int signo)
{
sigtermed=signo;
}
int
-main(argc, argv)
-int argc;
-char **argv;
+main(int argc, char *argv[])
{
-struct timespec ts;
-long t, a;
-int i, j, s, k;
-int n;
-int ch;
-int scrol;
-int t12;
+ struct timespec ts;
+ long t, a;
+ int i, j, s, k;
+ int n;
+ int ch;
+ int scrol;
+ int t12;
t12 = scrol = 0;
@@ -225,7 +223,7 @@ int t12;
void
set(int t, int n)
{
-int i, m;
+ int i, m;
m = 7<<n;
for(i=0; i<5; i++) {
OpenPOWER on IntegriCloud