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/upas/scanmail/common.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cmd/upas/scanmail/common.c') diff --git a/src/cmd/upas/scanmail/common.c b/src/cmd/upas/scanmail/common.c index eab9e2fc..2e368504 100644 --- a/src/cmd/upas/scanmail/common.c +++ b/src/cmd/upas/scanmail/common.c @@ -7,7 +7,7 @@ enum { Quanta = 8192, Minbody = 6000, - HdrMax = 15, + HdrMax = 15 }; typedef struct keyword Keyword; @@ -65,7 +65,7 @@ Keyword keywords[] = "hold", Hold, "dump", Dump, "loff", Lineoff, - 0, Nactions, + 0, Nactions }; Patterns patterns[] = { @@ -74,7 +74,7 @@ Patterns patterns[] = { [Hold] { "HOLD:", 0, 0 }, [SaveLine] { "LINE:", 0, 0 }, [Lineoff] { "LINEOFF:", 0, 0 }, -[Nactions] { 0, 0, 0 }, +[Nactions] { 0, 0, 0 } }; static char* endofhdr(char*, char*); @@ -306,7 +306,7 @@ conv64(char *msg, char *end, char *buf, int bufsize) char *cp; len = end - msg; - i = (len*3)/4+1; // room for max chars + null + i = (len*3)/4+1; /* room for max chars + null */ cp = Malloc(i); len = dec64((uchar*)cp, i, msg, len); convert(cp, cp+len, buf, bufsize, 1); @@ -663,5 +663,5 @@ static uchar t64d[256] = { /*E0*/ INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, /*F0*/ INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, - INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, + INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL, INVAL }; -- cgit v1.2.3