Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.

This commit is contained in:
rsc 2006-04-01 19:24:03 +00:00
parent 226d80b821
commit cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions

View file

@ -325,7 +325,7 @@ change(int a, int b, int c, int d)
enum
{
Lines = 3, /* number of lines of context shown */
Lines = 3 /* number of lines of context shown */
};
int

View file

@ -379,7 +379,7 @@ diffreg(char *f, char *t)
return;
}
if (binary){
// could use b0 and b1 but this is simpler.
/* could use b0 and b1 but this is simpler. */
if (cmp(b0, b1))
print("binary files %s %s differ\n", f, t);
Bterm(b0);