aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas/smtp/mxdial.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-12 00:34:08 +0000
committerrsc <devnull@localhost>2006-02-12 00:34:08 +0000
commita79cd7832f0154b7099bdeda5f9fbff6402d6760 (patch)
tree96ee47d45125d551f535d94256cbfcb323a23295 /src/cmd/upas/smtp/mxdial.c
parent7e61af5124e3843a8934da4e6be5e8fdc58d99dd (diff)
downloadplan9port-a79cd7832f0154b7099bdeda5f9fbff6402d6760.tar.gz
plan9port-a79cd7832f0154b7099bdeda5f9fbff6402d6760.tar.bz2
plan9port-a79cd7832f0154b7099bdeda5f9fbff6402d6760.zip
more changes
Diffstat (limited to 'src/cmd/upas/smtp/mxdial.c')
-rw-r--r--src/cmd/upas/smtp/mxdial.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cmd/upas/smtp/mxdial.c b/src/cmd/upas/smtp/mxdial.c
index 13f40ab5..ae272c7d 100644
--- a/src/cmd/upas/smtp/mxdial.c
+++ b/src/cmd/upas/smtp/mxdial.c
@@ -23,7 +23,7 @@ extern int debug;
static int mxlookup(DS*, char*);
static int mxlookup1(DS*, char*);
-static int compar(void*, void*);
+static int compar(const void*, const void*);
static int callmx(DS*, char*, char*);
static void expand_meta(DS *ds);
extern int cistrcmp(char*, char*);
@@ -50,8 +50,10 @@ mxdial(char *addr, char *ddomain, char *gdomain)
}
static int
-timeout(void*, char *msg)
+timeout(void *v, char *msg)
{
+ USED(v);
+
if(strstr(msg, "alarm"))
return 1;
return 0;
@@ -232,7 +234,7 @@ mxlookup1(DS *ds, char *domain)
}
static int
-compar(void *a, void *b)
+compar(const void *a, const void *b)
{
return ((Mx*)a)->pref - ((Mx*)b)->pref;
}