-Wall fixes.

This commit is contained in:
Bill Fumerola 1999-12-12 06:30:46 +00:00
parent 6636c9afd0
commit c9914211a1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54482
2 changed files with 4 additions and 3 deletions

View File

@ -47,8 +47,9 @@ static const char rcsid[] =
#include <stdio.h>
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)

View File

@ -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':