mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 09:12:44 +00:00
-Wall fixes.
This commit is contained in:
parent
6636c9afd0
commit
c9914211a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54482
@ -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)
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user