Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e27ede40
Commit
e27ede40
authored
Feb 07, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Remove unneeded casts.
parent
49665fa3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
async.c
dlls/ws2_32/async.c
+4
-4
socket.c
dlls/ws2_32/socket.c
+4
-7
No files found.
dlls/ws2_32/async.c
View file @
e27ede40
...
...
@@ -215,9 +215,9 @@ static int WS_copy_he(char *p_to,char *p_base,int t_size,struct hostent* p_he, i
p_name
=
p
;
strcpy
(
p
,
p_he
->
h_name
);
p
+=
strlen
(
p
)
+
1
;
p_aliases
=
p
;
p
+=
list_dup
(
p_he
->
h_aliases
,
p
,
p_base
+
(
p
-
(
char
*
)
p_to
),
0
);
p
+=
list_dup
(
p_he
->
h_aliases
,
p
,
p_base
+
(
p
-
p_to
),
0
);
p_addr
=
p
;
list_dup
(
p_he
->
h_addr_list
,
p
,
p_base
+
(
p
-
(
char
*
)
p_to
),
p_he
->
h_length
);
list_dup
(
p_he
->
h_addr_list
,
p
,
p_base
+
(
p
-
p_to
),
p_he
->
h_length
);
if
(
flag
&
AQ_WIN16
)
{
...
...
@@ -273,7 +273,7 @@ static int WS_copy_pe(char *p_to,char *p_base,int t_size,struct protoent* p_pe,
p_name
=
p
;
strcpy
(
p
,
p_pe
->
p_name
);
p
+=
strlen
(
p
)
+
1
;
p_aliases
=
p
;
list_dup
(
p_pe
->
p_aliases
,
p
,
p_base
+
(
p
-
(
char
*
)
p_to
),
0
);
list_dup
(
p_pe
->
p_aliases
,
p
,
p_base
+
(
p
-
p_to
),
0
);
if
(
flag
&
AQ_WIN16
)
{
...
...
@@ -630,7 +630,7 @@ HANDLE WINAPI WSAAsyncGetHostByName(HWND hWnd, UINT uMsg, LPCSTR name,
LPSTR
sbuf
,
INT
buflen
)
{
TRACE
(
"hwnd %p, msg %08x, host %s, buffer %i
\n
"
,
hWnd
,
uMsg
,
(
name
)
?
name
:
"<null>"
,
(
int
)
buflen
);
hWnd
,
uMsg
,
(
name
)
?
name
:
"<null>"
,
buflen
);
return
WSA_H32
(
__WSAsyncDBQuery
(
hWnd
,
uMsg
,
0
,
name
,
0
,
NULL
,
sbuf
,
buflen
,
AQ_NAME
|
AQ_DUPLOWPTR1
|
AQ_WIN32
|
AQ_GETHOST
));
}
...
...
dlls/ws2_32/socket.c
View file @
e27ede40
...
...
@@ -1670,8 +1670,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
if
(
(
fd
=
get_sock_fd
(
s
,
0
,
NULL
))
==
-
1
)
return
SOCKET_ERROR
;
convert_sockopt
(
&
level
,
&
optname
);
if
(
getsockopt
(
fd
,(
int
)
level
,
optname
,
optval
,
(
unsigned
int
*
)
optlen
)
!=
0
)
if
(
getsockopt
(
fd
,
level
,
optname
,
optval
,
(
unsigned
int
*
)
optlen
)
!=
0
)
{
SetLastError
((
errno
==
EBADF
)
?
WSAENOTSOCK
:
wsaErrno
());
ret
=
SOCKET_ERROR
;
...
...
@@ -1792,7 +1791,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
return
SOCKET_ERROR
;
convert_sockopt
(
&
level
,
&
optname
);
if
(
getsockopt
(
fd
,
(
int
)
level
,
optname
,
&
tv
,
&
len
)
!=
0
)
if
(
getsockopt
(
fd
,
level
,
optname
,
&
tv
,
&
len
)
!=
0
)
{
SetLastError
((
errno
==
EBADF
)
?
WSAENOTSOCK
:
wsaErrno
());
ret
=
SOCKET_ERROR
;
...
...
@@ -1886,8 +1885,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
if
(
(
fd
=
get_sock_fd
(
s
,
0
,
NULL
))
==
-
1
)
return
SOCKET_ERROR
;
convert_sockopt
(
&
level
,
&
optname
);
if
(
getsockopt
(
fd
,(
int
)
level
,
optname
,
optval
,
(
unsigned
int
*
)
optlen
)
!=
0
)
if
(
getsockopt
(
fd
,
level
,
optname
,
optval
,
(
unsigned
int
*
)
optlen
)
!=
0
)
{
SetLastError
((
errno
==
EBADF
)
?
WSAENOTSOCK
:
wsaErrno
());
ret
=
SOCKET_ERROR
;
...
...
@@ -1915,8 +1913,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
if
(
(
fd
=
get_sock_fd
(
s
,
0
,
NULL
))
==
-
1
)
return
SOCKET_ERROR
;
convert_sockopt
(
&
level
,
&
optname
);
if
(
getsockopt
(
fd
,(
int
)
level
,
optname
,
optval
,
(
unsigned
int
*
)
optlen
)
!=
0
)
if
(
getsockopt
(
fd
,
level
,
optname
,
optval
,
(
unsigned
int
*
)
optlen
)
!=
0
)
{
SetLastError
((
errno
==
EBADF
)
?
WSAENOTSOCK
:
wsaErrno
());
ret
=
SOCKET_ERROR
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment