From c9914211a130f39541d54e14d9bfbea54ae992ab Mon Sep 17 00:00:00 2001 From: Bill Fumerola Date: Sun, 12 Dec 1999 06:30:46 +0000 Subject: [PATCH] -Wall fixes. --- games/ppt/ppt.c | 5 +++-- games/random/random.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/games/ppt/ppt.c b/games/ppt/ppt.c index ac30eba8273b..2df8ef264023 100644 --- a/games/ppt/ppt.c +++ b/games/ppt/ppt.c @@ -47,8 +47,9 @@ static const char rcsid[] = #include -static void putppt(); +static void putppt(int); +int main(argc, argv) int argc; char **argv; @@ -58,7 +59,7 @@ main(argc, argv) (void) puts("___________"); if (argc > 1) - while (p = *++argv) + while ((p = *++argv)) for (; *p; ++p) putppt((int)*p); else while ((c = getchar()) != EOF) diff --git a/games/random/random.c b/games/random/random.c index 8c61588b7af7..8936b5ddb5dc 100644 --- a/games/random/random.c +++ b/games/random/random.c @@ -65,12 +65,12 @@ main(argc, argv) int argc; char *argv[]; { - extern int optind; double denom; int ch, random_exit, selected, unbuffer_output; char *ep; random_exit = unbuffer_output = 0; + denom = 0; while ((ch = getopt(argc, argv, "er")) != -1) switch (ch) { case 'e':