Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
12db20be
Commit
12db20be
authored
19 years ago
by
Gisle Vanem
Browse files
Options
Downloads
Patches
Plain Diff
Fixed signed/unsigned convertion errors in Salford-C.
#ifdef around WSAEDISCON in strerror.c.
parent
3cbb1b2b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/formdata.c
+1
-1
1 addition, 1 deletion
lib/formdata.c
lib/multi.c
+1
-1
1 addition, 1 deletion
lib/multi.c
lib/select.c
+2
-2
2 additions, 2 deletions
lib/select.c
lib/strerror.c
+2
-1
2 additions, 1 deletion
lib/strerror.c
with
6 additions
and
5 deletions
lib/formdata.c
+
1
−
1
View file @
12db20be
...
...
@@ -1279,7 +1279,7 @@ static size_t readfromfile(struct Form *form, char *buffer, size_t size)
/* this file hasn't yet been opened */
form
->
fp
=
fopen
(
form
->
data
->
line
,
"rb"
);
/* b is for binary */
if
(
!
form
->
fp
)
return
-
1
;
/* failure */
return
(
size_t
)
-
1
;
/* failure */
}
nread
=
fread
(
buffer
,
1
,
size
,
form
->
fp
);
...
...
This diff is collapsed.
Click to expand it.
lib/multi.c
+
1
−
1
View file @
12db20be
...
...
@@ -780,7 +780,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
/* if we failed anywhere, we must clean up the secondary socket if
it was used */
sclose
(
easy
->
easy_conn
->
sock
[
SECONDARYSOCKET
]);
easy
->
easy_conn
->
sock
[
SECONDARYSOCKET
]
=-
1
;
easy
->
easy_conn
->
sock
[
SECONDARYSOCKET
]
=
CURL_SOCKET_BAD
;
}
Curl_posttransfer
(
easy
->
easy_handle
);
Curl_done
(
&
easy
->
easy_conn
,
easy
->
result
);
...
...
This diff is collapsed.
Click to expand it.
lib/select.c
+
2
−
2
View file @
12db20be
...
...
@@ -131,7 +131,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms)
timeout
.
tv_usec
=
(
timeout_ms
%
1000
)
*
1000
;
FD_ZERO
(
&
fds_err
);
maxfd
=
-
1
;
maxfd
=
(
curl_socket_t
)
-
1
;
FD_ZERO
(
&
fds_read
);
if
(
readfd
!=
CURL_SOCKET_BAD
)
{
...
...
@@ -206,7 +206,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
FD_ZERO
(
&
fds_read
);
FD_ZERO
(
&
fds_write
);
FD_ZERO
(
&
fds_err
);
maxfd
=
-
1
;
maxfd
=
(
curl_socket_t
)
-
1
;
for
(
i
=
0
;
i
<
nfds
;
i
++
)
{
if
(
ufds
[
i
].
fd
==
CURL_SOCKET_BAD
)
...
...
This diff is collapsed.
Click to expand it.
lib/strerror.c
+
2
−
1
View file @
12db20be
...
...
@@ -519,10 +519,11 @@ get_winsock_error (int err, char *buf, size_t len)
case
WSAEREMOTE
:
p
=
"Remote error"
;
break
;
#ifdef WSAEDISCON
/* missing in SalfordC! */
case
WSAEDISCON
:
p
=
"Disconnected"
;
break
;
#endif
/* Extended Winsock errors */
case
WSASYSNOTREADY
:
p
=
"Winsock library is not ready"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment