Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
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
Harbor 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
dCache
cta
Commits
52cd7c4b
Commit
52cd7c4b
authored
19 years ago
by
Jean-Damien Durand
Committed by
Steven Murray
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed warning
parent
1a228098
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mediachanger/castorrmc/common/socket_timeout.c
+5
-4
5 additions, 4 deletions
mediachanger/castorrmc/common/socket_timeout.c
with
5 additions
and
4 deletions
mediachanger/castorrmc/common/socket_timeout.c
+
5
−
4
View file @
52cd7c4b
...
...
@@ -4,7 +4,7 @@
*/
#ifndef lint
static
char
sccsid
[]
=
"@(#)$RCSfile: socket_timeout.c,v $ $Revision: 1.2
2
$ $Date: 200
3/10/29 13:06:3
4 $ CERN IT-PDP/DM Jean-Damien Durand"
;
static
char
sccsid
[]
=
"@(#)$RCSfile: socket_timeout.c,v $ $Revision: 1.2
3
$ $Date: 200
5/07/11 10:34:2
4 $ CERN IT-PDP/DM Jean-Damien Durand"
;
#endif
/* not lint */
#if defined(linux)
...
...
@@ -453,7 +453,8 @@ int _net_connectable(fd, timeout)
fd_set
wset
,
eset
;
struct
timeval
tv
;
#endif
int
rc
,
errval
,
errval_len
;
int
rc
,
errval
;
socklen_t
errval_len
;
#ifdef USE_POLL_INSTEAD_OF_SELECT
pollit
.
fd
=
fd
;
...
...
@@ -506,8 +507,8 @@ int _net_connectable(fd, timeout)
* error for the connect() completion. Some systems (Windows) sets
* the exception set to indicate that there was an error.
*/
errval_len
=
sizeof
(
errval
);
if
(
getsockopt
(
fd
,
SOL_SOCKET
,
SO_ERROR
,
(
char
*
)
&
errval
,
(
int
*
)
&
errval_len
)
==
-
1
)
{
errval_len
=
(
socklen_t
)
sizeof
(
errval
);
if
(
getsockopt
(
fd
,
SOL_SOCKET
,
SO_ERROR
,
(
char
*
)
&
errval
,
&
errval_len
)
==
-
1
)
{
serrno
=
0
;
return
(
-
1
);
}
...
...
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