fix warnings in libev related codebase
[citadel.git] / citadel / modules / smtp / smtp_util.c
index 9e215c07455176cc298a52d337239f9c5d6c4262..1db154635cc84e30b92499d20a00e136b8401351 100644 (file)
@@ -116,7 +116,6 @@ void smtp_do_bounce(char *instr, StrBuf *OMsgTxt)
        StrBuf *boundary;
        int num_bounces = 0;
        int bounce_this = 0;
-       long bounce_msgid = (-1);
        time_t submitted = 0L;
        struct CtdlMessage *bmsg = NULL;
        int give_up = 0;
@@ -258,12 +257,10 @@ void smtp_do_bounce(char *instr, StrBuf *OMsgTxt)
        if (num_bounces > 0) {
 
                /* First try the user who sent the message */
-               syslog(LOG_DEBUG, "bounce to user? <%s>\n", bounceto);
-               if (IsEmptyStr(bounceto)) {
+               if (IsEmptyStr(bounceto)) 
                        syslog(LOG_ERR, "No bounce address specified\n");
-                       bounce_msgid = (-1L);
-               }
-
+               else
+                       syslog(LOG_DEBUG, "bounce to user <%s>\n", bounceto);
                /* Can we deliver the bounce to the original sender? */
                valid = validate_recipients(bounceto, smtp_get_Recipients (), 0);
                if (valid != NULL) {