Reworked test-rcvdist so that it sees the output of post.
[mmh] / uip / popsbr.c
index fcdbd75..c566264 100644 (file)
@@ -343,12 +343,12 @@ sasl_get_user(void *context, int id, const char **result, unsigned *len)
 static int
 sasl_get_pass(sasl_conn_t *conn, void *context, int id, sasl_secret_t **psecret)
 {
-    NMH_UNUSED (conn);
-
     struct pass_context *p_context = (struct pass_context *) context;
     char *pass = NULL;
     int len;
 
+    NMH_UNUSED (conn);
+
     if (! psecret || id != SASL_CB_PASS)
        return SASL_BADPARAM;
 
@@ -420,6 +420,10 @@ pop_init (char *host, char *port, char *user, char *pass, char *proxy,
 {
     int fd1, fd2;
     char buffer[BUFSIZ];
+#ifndef CYRUS_SASL
+    NMH_UNUSED (sasl);
+    NMH_UNUSED (mech);
+#endif /* ! CYRUS_SASL */
 
     if (proxy && *proxy) {
        int pid;