summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/sendmail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c
index 402ef87afa..58182c00e6 100644
--- a/win32/sendmail.c
+++ b/win32/sendmail.c
@@ -395,7 +395,7 @@ int MailConnect()
{
int res;
- int portnum;
+ short portnum;
/* Create Socket */
if ((sc = socket(PF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET)
@@ -413,7 +413,7 @@ int MailConnect()
}
*/
- portnum = INI_INT("sendmail_port");
+ portnum = (short) INI_INT("sendmail_port");
if (!portnum) {
portnum = 25;
}