summaryrefslogtreecommitdiff
path: root/mail/msmtp/patches/patch-ab
blob: 8afc1019b12ca50525fb13342cfaefa682c49612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ab,v 1.2 2006/01/08 16:38:41 joerg Exp $

--- src/msmtp.c.orig	2005-08-14 20:13:02.000000000 +0000
+++ src/msmtp.c
@@ -31,7 +31,6 @@
 #include <string.h>
 #include <ctype.h>
 #include <errno.h>
-extern int errno;
 #include <time.h>
 #include <getopt.h>
 extern char *optarg;
@@ -3382,5 +3381,5 @@ exit:
 	list_xfree(errmsg, free);
     }
 
-    return error_code;
+    return (error_code == EX_OK) ? 0 : error_code;
 }