From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/cmd/page/gfx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd/page/gfx.c') diff --git a/src/cmd/page/gfx.c b/src/cmd/page/gfx.c index 6a947039..9ce6f74c 100644 --- a/src/cmd/page/gfx.c +++ b/src/cmd/page/gfx.c @@ -44,7 +44,7 @@ enum { Ippm, Ipng, Iyuv, - Ibmp, + Ibmp }; /* @@ -65,7 +65,7 @@ Convert cvt[] = { [Iccittg4] { "ccitt-g4", "cat %a|rx nslocum /usr/lib/ocr/bin/bcp -M|fb/pcp -tcompressed -l0" }, [Ipng] { "png", "png -9 %a", "png -t9 %a" }, [Iyuv] { "yuv", "yuv -9 %a", "yuv -t9 %a" }, -[Ibmp] { "bmp", "bmp -9 %a", "bmp -t9 %a" }, +[Ibmp] { "bmp", "bmp -9 %a", "bmp -t9 %a" } }; static Image* convert(Graphic*); @@ -325,7 +325,7 @@ spawnrc(char *cmd, uchar *stdinbuf, int nstdinbuf) else dup(open("/dev/null", OREAD), 0); dup(pfd[0], 1); - //dup(pfd[0], 2); + /*dup(pfd[0], 2); */ execl("/bin/rc", "rc", "-c", cmd, nil); wexits("exec"); } -- cgit v1.2.3