server: rename CamelCase symbols
No cross dependency, just changes internal to each file/function. Change-Id: I04153a5720b0540bc1998bafe526d523b2ee5515 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6303 Tested-by: jenkins
This commit is contained in:
parent
1887e2a273
commit
11a621c752
|
@ -609,7 +609,7 @@ static void sig_handler(int sig)
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
BOOL WINAPI ControlHandler(DWORD dwCtrlType)
|
BOOL WINAPI control_handler(DWORD ctrl_type)
|
||||||
{
|
{
|
||||||
shutdown_openocd = SHUTDOWN_WITH_SIGNAL_CODE;
|
shutdown_openocd = SHUTDOWN_WITH_SIGNAL_CODE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -634,12 +634,12 @@ int server_host_os_entry(void)
|
||||||
* This is an issue if you call init in your config script */
|
* This is an issue if you call init in your config script */
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
WORD wVersionRequested;
|
WORD version_requested;
|
||||||
WSADATA wsaData;
|
WSADATA wsadata;
|
||||||
|
|
||||||
wVersionRequested = MAKEWORD(2, 2);
|
version_requested = MAKEWORD(2, 2);
|
||||||
|
|
||||||
if (WSAStartup(wVersionRequested, &wsaData) != 0) {
|
if (WSAStartup(version_requested, &wsadata) != 0) {
|
||||||
LOG_ERROR("Failed to Open Winsock");
|
LOG_ERROR("Failed to Open Winsock");
|
||||||
return ERROR_FAIL;
|
return ERROR_FAIL;
|
||||||
}
|
}
|
||||||
|
@ -659,7 +659,7 @@ int server_preinit(void)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
/* register ctrl-c handler */
|
/* register ctrl-c handler */
|
||||||
SetConsoleCtrlHandler(ControlHandler, TRUE);
|
SetConsoleCtrlHandler(control_handler, TRUE);
|
||||||
|
|
||||||
signal(SIGBREAK, sig_handler);
|
signal(SIGBREAK, sig_handler);
|
||||||
signal(SIGINT, sig_handler);
|
signal(SIGINT, sig_handler);
|
||||||
|
@ -698,7 +698,7 @@ int server_quit(void)
|
||||||
target_quit();
|
target_quit();
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
SetConsoleCtrlHandler(ControlHandler, FALSE);
|
SetConsoleCtrlHandler(control_handler, FALSE);
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue