X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=mts%2Fsmtp%2Fsmtp.c;h=faca17af8a42e9de5e884064534de8505ce3ff5a;hb=9e1f6d6d4c2e154c7274e7fb3f1931924e458b17;hp=df1dbbf4e3d11a30194f6e0f2b99a2a19e86976f;hpb=3a84d814004fd4557bf4f44952648e9e69bd22a8;p=mmh diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index df1dbbf..faca17a 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -70,7 +70,9 @@ #define SM_DOT 600 /* see above */ #define SM_QUIT 30 #define SM_CLOS 10 +#ifdef CYRUS_SASL #define SM_AUTH 45 +#endif /* CYRUS_SASL */ static int sm_addrs = 0; static int sm_alarmed = 0; @@ -194,6 +196,10 @@ smtp_init (char *client, char *server, char *port, int watch, int verbose, { #ifdef CYRUS_SASL char *server_mechs; +#else /* CYRUS_SASL */ + NMH_UNUSED (sasl); + NMH_UNUSED (saslmech); + NMH_UNUSED (user); #endif /* CYRUS_SASL */ int result, sd1, sd2; @@ -210,7 +216,7 @@ smtp_init (char *client, char *server, char *port, int watch, int verbose, if (clientname) { client = clientname; } else { - client = LocalName(); /* no clientname -> LocalName */ + client = LocalName(1); /* no clientname -> LocalName */ } } @@ -447,6 +453,11 @@ sendmail_init (char *client, char *server, int watch, int verbose, { #ifdef CYRUS_SASL char *server_mechs; +#else /* CYRUS_SASL */ + NMH_UNUSED (server); + NMH_UNUSED (sasl); + NMH_UNUSED (saslmech); + NMH_UNUSED (user); #endif /* CYRUS_SASL */ unsigned int i, result, vecp; int pdi[2], pdo[2]; @@ -464,7 +475,7 @@ sendmail_init (char *client, char *server, int watch, int verbose, if (clientname) client = clientname; else - client = LocalName(); /* no clientname -> LocalName */ + client = LocalName(1); /* no clientname -> LocalName */ } /*