#if !defined (__GNUC__) || __GNUC__ < 2
# define __attribute__(x)
#endif
-#define unused __attribute__((unused))
int
/* Callback to prnt the recipient status */
void
print_recipient_status (smtp_recipient_t recipient,
- const char *mailbox, void *arg unused)
+ const char *mailbox, void *arg)
{
const smtp_status_t *status;
sprintf(tempFileName, "/tmp/messageXXXXXX");
tempFd = mkstemp(tempFileName);
fp = fdopen(tempFd, "w");
- fprintf(fp, messageContents);
+ fprintf(fp, "%s", messageContents);
fclose(fp);
fp = fopen(tempFileName, "r");
smtp_set_message_fp(message, fp);