aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas/smtp
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/upas/smtp
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/upas/smtp')
-rw-r--r--src/cmd/upas/smtp/mxdial.c2
-rw-r--r--src/cmd/upas/smtp/rfc822.tab.c2
-rw-r--r--src/cmd/upas/smtp/smtp.c4
-rw-r--r--src/cmd/upas/smtp/smtpd.h2
-rw-r--r--src/cmd/upas/smtp/spam.c6
5 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/upas/smtp/mxdial.c b/src/cmd/upas/smtp/mxdial.c
index 47ff9ecc..d68a5d16 100644
--- a/src/cmd/upas/smtp/mxdial.c
+++ b/src/cmd/upas/smtp/mxdial.c
@@ -6,7 +6,7 @@
enum
{
Nmx= 16,
- Maxstring= 256,
+ Maxstring= 256
};
typedef struct Mx Mx;
diff --git a/src/cmd/upas/smtp/rfc822.tab.c b/src/cmd/upas/smtp/rfc822.tab.c
index 1f12e48e..cacf8672 100644
--- a/src/cmd/upas/smtp/rfc822.tab.c
+++ b/src/cmd/upas/smtp/rfc822.tab.c
@@ -603,7 +603,7 @@ static const short yyexca[] =
31, 72,
32, 72,
35, 72,
- -2, 74,
+ -2, 74
};
#define YYNPROD 122
#define YYPRIVATE 57344
diff --git a/src/cmd/upas/smtp/smtp.c b/src/cmd/upas/smtp/smtp.c
index d3297dfa..fd867cd6 100644
--- a/src/cmd/upas/smtp/smtp.c
+++ b/src/cmd/upas/smtp/smtp.c
@@ -179,7 +179,7 @@ threadmain(int argc, char **argv)
if(*argv == 0)
usage();
addr = *argv++; argc--;
- // expand $smtp if necessary
+ /* expand $smtp if necessary */
addr = expand_addr(addr);
farend = addr;
@@ -359,7 +359,7 @@ dotls(char *me)
h = malloc(2*sizeof hash + 1);
if (h != nil) {
enc16(h, 2*sizeof hash + 1, hash, sizeof hash);
- // print("x509 sha1=%s", h);
+ /* print("x509 sha1=%s", h); */
syslog(0, "smtp",
"remote cert. has bad thumbprint: x509 sha1=%s server=%q",
h, ddomain);
diff --git a/src/cmd/upas/smtp/smtpd.h b/src/cmd/upas/smtp/smtpd.h
index 3a8e60e2..bb982a2f 100644
--- a/src/cmd/upas/smtp/smtpd.h
+++ b/src/cmd/upas/smtp/smtpd.h
@@ -8,7 +8,7 @@ enum {
TRUSTED,
NONE,
- MAXREJECTS = 100,
+ MAXREJECTS = 100
};
diff --git a/src/cmd/upas/smtp/spam.c b/src/cmd/upas/smtp/spam.c
index a4d49485..723e341d 100644
--- a/src/cmd/upas/smtp/spam.c
+++ b/src/cmd/upas/smtp/spam.c
@@ -11,7 +11,7 @@ enum {
OURDOMS,
IP = 0,
- STRING,
+ STRING
};
@@ -29,7 +29,7 @@ static Keyword options[] = {
"defaultdomain", DOMNAME,
"ournets", OURNETS,
"ourdomains", OURDOMS,
- 0, NONE,
+ 0, NONE
};
static Keyword actions[] = {
@@ -38,7 +38,7 @@ static Keyword actions[] = {
"deny", DENIED,
"dial", DIALUP,
"delay", DELAY,
- 0, NONE,
+ 0, NONE
};
static int hisaction;