int enabled;
} smtp_conf;
-DEFINE_LIST(mail_queue, struct pending_mail *);
+DEFINE_LIST(mail_queue, struct pending_mail *)
static void mail_println(const char *fmt, ...)
{
}
res = getnameinfo(sa, sa_len, namebuf, buflen, NULL, 0, NI_NUMERICHOST);
if (res != 0) {
- log_module(MAIL_LOG, LOG_ERROR, "Unable to get text form of socket name: %s", strerror(errno));
+ log_module(MAIL_LOG, LOG_ERROR, "Unable to get text form of socket name: %s", gai_strerror(res));
}
}
assert(smtp_fd == fd);
smtp_state = CLOSED;
smtp_fd = NULL;
+ (void)fd; /* in case NDEBUG causes assert() to be empty */
}
static void mail_connected(struct io_fd *fd, int error)