mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-09 19:20:41 +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:
parent
9e6476c7b2
commit
c52e49de2d
@ -15542,12 +15542,6 @@ UINT SmFarmMemberDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert the string to port list
|
|
||||||
LIST *SmStrToPortList(char *str)
|
|
||||||
{
|
|
||||||
return StrToPortList(str);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Initialize the dialog
|
// Initialize the dialog
|
||||||
void SmFarmDlgInit(HWND hWnd, SM_SERVER *p)
|
void SmFarmDlgInit(HWND hWnd, SM_SERVER *p)
|
||||||
{
|
{
|
||||||
@ -15680,7 +15674,7 @@ void SmFarmDlgUpdate(HWND hWnd, SM_SERVER *p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
s = GetTextA(hWnd, E_PORT);
|
s = GetTextA(hWnd, E_PORT);
|
||||||
o = SmStrToPortList(s);
|
o = StrToPortList(s, true);
|
||||||
if (o == NULL)
|
if (o == NULL)
|
||||||
{
|
{
|
||||||
ok = false;
|
ok = false;
|
||||||
@ -15787,7 +15781,7 @@ void SmFarmDlgOnOk(HWND hWnd, SM_SERVER *p)
|
|||||||
s = GetTextA(hWnd, E_PORT);
|
s = GetTextA(hWnd, E_PORT);
|
||||||
if (s != NULL)
|
if (s != NULL)
|
||||||
{
|
{
|
||||||
LIST *o = SmStrToPortList(s);
|
LIST *o = StrToPortList(s, true);
|
||||||
if (o != NULL)
|
if (o != NULL)
|
||||||
{
|
{
|
||||||
UINT i;
|
UINT i;
|
||||||
|
@ -440,7 +440,6 @@ UINT SmFarmDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *para
|
|||||||
void SmFarmDlgInit(HWND hWnd, SM_SERVER *p);
|
void SmFarmDlgInit(HWND hWnd, SM_SERVER *p);
|
||||||
void SmFarmDlgUpdate(HWND hWnd, SM_SERVER *p);
|
void SmFarmDlgUpdate(HWND hWnd, SM_SERVER *p);
|
||||||
void SmFarmDlgOnOk(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);
|
UINT SmFarmMemberDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param);
|
||||||
void SmFarmMemberDlgInit(HWND hWnd, SM_SERVER *p);
|
void SmFarmMemberDlgInit(HWND hWnd, SM_SERVER *p);
|
||||||
void SmFarmMemberDlgUpdate(HWND hWnd, SM_SERVER *p);
|
void SmFarmMemberDlgUpdate(HWND hWnd, SM_SERVER *p);
|
||||||
|
Loading…
Reference in New Issue
Block a user