mirror of
https://github.com/curl/curl.git
synced 2026-07-30 04:28:02 +03:00
drop cast, scope var
This commit is contained in:
parent
8cf454682c
commit
b85f4aa51c
1 changed files with 3 additions and 2 deletions
|
|
@ -557,11 +557,12 @@ static DWORD WINAPI select_ws_wait_thread(void *lpParameter)
|
|||
static HANDLE select_ws_wait(HANDLE handle, HANDLE signal, HANDLE abort)
|
||||
{
|
||||
struct select_ws_wait_data *data;
|
||||
HANDLE thread;
|
||||
|
||||
/* allocate internal waiting data structure */
|
||||
data = malloc(sizeof(struct select_ws_wait_data));
|
||||
if(data) {
|
||||
HANDLE thread;
|
||||
|
||||
data->handle = handle;
|
||||
data->signal = signal;
|
||||
data->abort = abort;
|
||||
|
|
@ -573,7 +574,7 @@ static HANDLE select_ws_wait(HANDLE handle, HANDLE signal, HANDLE abort)
|
|||
if(!thread) {
|
||||
free(data);
|
||||
}
|
||||
return (HANDLE)thread;
|
||||
return thread;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue