Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
4f375592
Commit
4f375592
authored
Nov 21, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid a compiler warning about setting "len" without using it.
parent
604dbf6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
syscall.c
syscall.c
+5
-4
No files found.
syscall.c
View file @
4f375592
...
...
@@ -87,14 +87,15 @@ int do_mknod(const char *pathname, mode_t mode, dev_t dev)
if
(
S_ISSOCK
(
mode
))
{
int
sock
;
struct
sockaddr_un
saddr
;
unsigned
int
len
;
saddr
.
sun_family
=
AF_UNIX
;
len
=
strlcpy
(
saddr
.
sun_path
,
pathname
,
sizeof
saddr
.
sun_path
);
#ifdef HAVE_SOCKADDR_UN_LEN
unsigned
int
len
=
#endif
strlcpy
(
saddr
.
sun_path
,
pathname
,
sizeof
saddr
.
sun_path
);
#ifdef HAVE_SOCKADDR_UN_LEN
saddr
.
sun_len
=
len
>=
sizeof
saddr
.
sun_path
?
sizeof
saddr
.
sun_path
:
len
+
1
;
#endif
saddr
.
sun_family
=
AF_UNIX
;
if
((
sock
=
socket
(
PF_UNIX
,
SOCK_STREAM
,
0
))
<
0
||
(
unlink
(
pathname
)
<
0
&&
errno
!=
ENOENT
)
...
...
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