Fix the blatantly wrong compiler warnings

This commit is contained in:
Eric Fischer 2017-09-01 12:30:20 -07:00
parent d78041b93b
commit 0ac4faa980
8 changed files with 15 additions and 8 deletions

View File

@ -1,11 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
void
usage (char *s)
{
fprintf (stderr, "Usage: %s [file]\n");
fprintf (stderr, "Usage: %s [file]\n", s);
}
void

2
awp.c
View File

@ -123,7 +123,7 @@ process (FILE *f, char *name)
sub--;
}
}
} else if (rec[1] = 0xd0) {
} else if (rec[1] == 0xd0) {
int i;
for (i = 0; i < rec[0]; i++)

View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
char **av;
@ -7,7 +8,7 @@ char **av;
void
usage (char *s)
{
fprintf (stderr, "Usage: %s [file]\n");
fprintf (stderr, "Usage: %s [file]\n", s);
}
void

3
fp.c
View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
char **av;
@ -7,7 +8,7 @@ char **av;
void
usage (char *s)
{
fprintf (stderr, "Usage: %s [file]\n");
fprintf (stderr, "Usage: %s [file]\n", s);
}
char *

3
orca.c
View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
char **av;
@ -7,7 +8,7 @@ char **av;
void
usage (char *s)
{
fprintf (stderr, "Usage: %s [file]\n");
fprintf (stderr, "Usage: %s [file]\n", s);
}
void

3
pack.c
View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
char **av;
@ -7,7 +8,7 @@ char **av;
void
usage (char *s)
{
fprintf (stderr, "Usage: %s [file]\n");
fprintf (stderr, "Usage: %s [file]\n", s);
}
void

3
ps.c
View File

@ -1,11 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
void
usage (char *s)
{
fprintf (stderr, "Usage: %s [file]\n");
fprintf (stderr, "Usage: %s [file]\n", s);
}
void

3
zb.c
View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
char **av;
@ -7,7 +8,7 @@ char **av;
void
usage (char *s)
{
fprintf (stderr, "Usage: %s [file]\n");
fprintf (stderr, "Usage: %s [file]\n", s);
}
char *