Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
ce54dc97
Commit
ce54dc97
authored
Oct 07, 2004
by
Bill Hoffman
Browse files
COMP: Remove assignment warnings on hp
parent
caa8ca7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/CTest/Curl/connect.c
View file @
ce54dc97
...
...
@@ -364,9 +364,13 @@ static CURLcode bindlocal(struct connectdata *conn,
bindworked
=
TRUE
;
size
=
sizeof
(
add
);
#ifdef __hpux
int
gsize
=
sizeof
(
add
);
#else
socklen_t
gsize
=
sizeof
(
add
);
#endif
if
(
getsockname
(
sockfd
,
(
struct
sockaddr
*
)
&
add
,
(
socklen_t
*
)
&
size
)
<
0
)
{
&
g
size
)
<
0
)
{
failf
(
data
,
"getsockname() failed"
);
return
CURLE_HTTP_PORT_FAILED
;
}
...
...
@@ -405,7 +409,12 @@ static bool verifyconnect(curl_socket_t sockfd, int *error)
bool
rc
=
TRUE
;
#ifdef SO_ERROR
int
err
=
0
;
#ifdef __hpux
int
errSize
=
sizeof
(
err
);
#else
socklen_t
errSize
=
sizeof
(
err
);
#endif
#ifdef WIN32
/*
...
...
Write
Preview
Supports
Markdown
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