Skip to content

Commit ccf8e3f

Browse files
committed
win32/sendmail.c/GetAddr(): use standard char* type
And make it const too while at it.
1 parent 2943526 commit ccf8e3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

win32/sendmail.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static int MailConnect();
118118
static bool PostHeader(char *RPath, const char *Subject, const char *mailTo, zend_string *xheaders);
119119
static bool Post(LPCSTR msg);
120120
static int Ack(char **server_response);
121-
static unsigned long GetAddr(LPSTR szHost);
121+
static unsigned long GetAddr(const char *szHost);
122122
static int FormatEmailAddress(char* Buf, char* EmailAddress, char* FormatString);
123123

124124
/* This function is meant to unify the headers passed to to mail()
@@ -904,7 +904,7 @@ static int Ack(char **server_response)
904904

905905

906906
//*********************************************************************
907-
// Name: unsigned long GetAddr (LPSTR szHost)
907+
// Name: unsigned long GetAddr (const char *szHost)
908908
// Input:
909909
// Output:
910910
// Description: Given a string, it will return an IP address.
@@ -915,7 +915,7 @@ static int Ack(char **server_response)
915915
// Author/Date: jcar 20/9/96
916916
// History:
917917
//*********************************************************************
918-
static unsigned long GetAddr(LPSTR szHost)
918+
static unsigned long GetAddr(const char *szHost)
919919
{
920920
LPHOSTENT lpstHost;
921921
u_long lAddr = INADDR_ANY;

0 commit comments

Comments
 (0)