1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-26 01:59:53 +03:00

Cedar/SM: replace SmStrToPortList() with StrToPortList()

The function only called StrToPortList(), thus it can safely be replaced with the upstream function.
This commit is contained in:
Davide Beatrici 2020-05-20 01:47:13 +02:00
parent 9e6476c7b2
commit c52e49de2d
2 changed files with 2 additions and 9 deletions

View File

@ -15542,12 +15542,6 @@ UINT SmFarmMemberDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void
return 0;
}
// Convert the string to port list
LIST *SmStrToPortList(char *str)
{
return StrToPortList(str);
}
// Initialize the dialog
void SmFarmDlgInit(HWND hWnd, SM_SERVER *p)
{
@ -15680,7 +15674,7 @@ void SmFarmDlgUpdate(HWND hWnd, SM_SERVER *p)
}
s = GetTextA(hWnd, E_PORT);
o = SmStrToPortList(s);
o = StrToPortList(s, true);
if (o == NULL)
{
ok = false;
@ -15787,7 +15781,7 @@ void SmFarmDlgOnOk(HWND hWnd, SM_SERVER *p)
s = GetTextA(hWnd, E_PORT);
if (s != NULL)
{
LIST *o = SmStrToPortList(s);
LIST *o = StrToPortList(s, true);
if (o != NULL)
{
UINT i;

View File

@ -440,7 +440,6 @@ UINT SmFarmDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *para
void SmFarmDlgInit(HWND hWnd, SM_SERVER *p);
void SmFarmDlgUpdate(HWND hWnd, SM_SERVER *p);
void SmFarmDlgOnOk(HWND hWnd, SM_SERVER *p);
LIST *SmStrToPortList(char *str);
UINT SmFarmMemberDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param);
void SmFarmMemberDlgInit(HWND hWnd, SM_SERVER *p);
void SmFarmMemberDlgUpdate(HWND hWnd, SM_SERVER *p);