diff --git a/Makefile b/Makefile index 3780755..a2ccd42 100644 --- a/Makefile +++ b/Makefile @@ -336,7 +336,7 @@ LN=ln # real effect on the reliability of the program, but may concern some # people who don't understand them. #CFLAGS=-DSYSV3 -O2 -Wall -pipe -CFLAGS=-DSYSV3 -O2 -pipe +CFLAGS=-DSYSV3 -O2 -pipe -fpermissive LIB=-lm -lncurses # All of the source files diff --git a/cmds.c b/cmds.c index fdb591f..c9fe37b 100644 --- a/cmds.c +++ b/cmds.c @@ -1468,7 +1468,7 @@ doformat(int c1, int c2, int w, int p, int r) } void -formatcol(arg) +formatcol(int arg) { int c, i; int mf = modflg; @@ -1603,7 +1603,7 @@ formatcol(arg) } void -ljustify(sr, sc, er, ec) +ljustify(int sr, int sc, int er, int ec) { struct ent *p; int i, j; @@ -1632,7 +1632,7 @@ ljustify(sr, sc, er, ec) } void -rjustify(sr, sc, er, ec) +rjustify(int sr, int sc, int er, int ec) { struct ent *p; int i, j; @@ -1661,7 +1661,7 @@ rjustify(sr, sc, er, ec) } void -center(sr, sc, er, ec) +center(int sr, int sc, int er, int ec) { struct ent *p; int i, j; @@ -2562,7 +2562,7 @@ openfile(char *fname, int *rpid, int *rfd) (void) dup(pipefd[3]); /* connect to second pipe */ } (void) signal(SIGINT, SIG_DFL); /* reset */ - (void) execl("/bin/sh", "sh", "-c", efname, 0); + (void) execl("/bin/sh", "sh", "-c", efname, NULL); exit (-127); } else { /* else parent */ *rpid = pid;