[Spice-devel] [PATCH spice-server 1/2] test-websocket: Some Windows compatibility
Uri Lublin
uril at redhat.com
Tue Aug 6 12:38:04 UTC 2019
On 8/5/19 4:52 PM, Frediano Ziglio wrote:
> ping
>
>> ping the series
Ack for both patches.
Uri.
>>
>>>
>>> Don't call close but socket_close.
>>>
>>> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
>>> ---
>>> server/tests/test-websocket.c | 4 ++--
>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>> Currently the executable cannot run on Windows but it does not hurt
>>> to make the source more compatible with that system.
>>>
>>> diff --git a/server/tests/test-websocket.c b/server/tests/test-websocket.c
>>> index dc7b7d342..e74cb5497 100644
>>> --- a/server/tests/test-websocket.c
>>> +++ b/server/tests/test-websocket.c
>>> @@ -193,10 +193,10 @@ main(int argc, char **argv)
>>> ++num_connections;
>>> handle_client(new_sock);
>>>
>>> - close(new_sock);
>>> + socket_close(new_sock);
>>> }
>>>
>>> - close(sock);
>>> + socket_close(sock);
>>> printf("handled %u connections\n", num_connections);
>>> return 0;
>>> }
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
>
More information about the Spice-devel
mailing list