Fossil SCM

Fix a compiler warning on the mac build.

drh 2018-07-12 13:13 UTC smtp-win
Commit b6b5048a1b4a7cd088cac4b06ed69910311f9f10936b81c0fcbe24dd27cb9240
1 file changed +3 -2
+3 -2
--- src/smtp.c
+++ src/smtp.c
@@ -82,12 +82,11 @@
8282
ns_name_uncompress(aDns, aDns+nDns, pBest+2,
8383
zHostname, sizeof(zHostname));
8484
return fossil_strdup(zHostname);
8585
}
8686
return 0;
87
-#endif /* defined(FOSSIL_UNIX_SYTLE_DNS) */
88
-#if defined(FOSSIL_WINDOWS_STYLE_DNS)
87
+#elif defined(FOSSIL_WINDOWS_STYLE_DNS)
8988
DNS_STATUS status; /* Return status */
9089
PDNS_RECORDA pDnsRecord, p; /* Pointer to DNS_RECORD structure */
9190
int iBestPriority = 9999999; /* Best priority */
9291
char *pBest = 0; /* RDATA for the best answer */
9392
@@ -110,10 +109,12 @@
110109
if( pBest ){
111110
pBest = fossil_strdup(pBest);
112111
}
113112
DnsRecordListFree(pDnsRecord, DnsFreeRecordListDeep);
114113
return pBest;
114
+#else
115
+ return 0;
115116
#endif /* defined(FOSSIL_WINDOWS_STYLE_DNS) */
116117
}
117118
118119
/*
119120
** COMMAND: test-find-mx
120121
--- src/smtp.c
+++ src/smtp.c
@@ -82,12 +82,11 @@
82 ns_name_uncompress(aDns, aDns+nDns, pBest+2,
83 zHostname, sizeof(zHostname));
84 return fossil_strdup(zHostname);
85 }
86 return 0;
87 #endif /* defined(FOSSIL_UNIX_SYTLE_DNS) */
88 #if defined(FOSSIL_WINDOWS_STYLE_DNS)
89 DNS_STATUS status; /* Return status */
90 PDNS_RECORDA pDnsRecord, p; /* Pointer to DNS_RECORD structure */
91 int iBestPriority = 9999999; /* Best priority */
92 char *pBest = 0; /* RDATA for the best answer */
93
@@ -110,10 +109,12 @@
110 if( pBest ){
111 pBest = fossil_strdup(pBest);
112 }
113 DnsRecordListFree(pDnsRecord, DnsFreeRecordListDeep);
114 return pBest;
 
 
115 #endif /* defined(FOSSIL_WINDOWS_STYLE_DNS) */
116 }
117
118 /*
119 ** COMMAND: test-find-mx
120
--- src/smtp.c
+++ src/smtp.c
@@ -82,12 +82,11 @@
82 ns_name_uncompress(aDns, aDns+nDns, pBest+2,
83 zHostname, sizeof(zHostname));
84 return fossil_strdup(zHostname);
85 }
86 return 0;
87 #elif defined(FOSSIL_WINDOWS_STYLE_DNS)
 
88 DNS_STATUS status; /* Return status */
89 PDNS_RECORDA pDnsRecord, p; /* Pointer to DNS_RECORD structure */
90 int iBestPriority = 9999999; /* Best priority */
91 char *pBest = 0; /* RDATA for the best answer */
92
@@ -110,10 +109,12 @@
109 if( pBest ){
110 pBest = fossil_strdup(pBest);
111 }
112 DnsRecordListFree(pDnsRecord, DnsFreeRecordListDeep);
113 return pBest;
114 #else
115 return 0;
116 #endif /* defined(FOSSIL_WINDOWS_STYLE_DNS) */
117 }
118
119 /*
120 ** COMMAND: test-find-mx
121

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button