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
ca0e8296
Commit
ca0e8296
authored
Dec 08, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of some signed/unsigned-comparison compiler warnings.
parent
c4a28da3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
generator.c
generator.c
+5
-5
No files found.
generator.c
View file @
ca0e8296
...
@@ -284,8 +284,8 @@ static int start_delete_delay_temp(void)
...
@@ -284,8 +284,8 @@ static int start_delete_delay_temp(void)
dry_run
=
save_dry_run
;
dry_run
=
save_dry_run
;
return
0
;
return
0
;
}
}
dry_run
=
save_dry_run
;
unlink
(
fnametmp
);
unlink
(
fnametmp
);
dry_run
=
save_dry_run
;
return
1
;
return
1
;
}
}
...
@@ -520,7 +520,7 @@ static void do_delete_pass(struct file_list *flist)
...
@@ -520,7 +520,7 @@ static void do_delete_pass(struct file_list *flist)
int
unchanged_attrs
(
struct
file_struct
*
file
,
STRUCT_STAT
*
st
)
int
unchanged_attrs
(
struct
file_struct
*
file
,
STRUCT_STAT
*
st
)
{
{
if
(
preserve_perms
if
(
preserve_perms
&&
(
st
->
st_mode
&
CHMOD_BITS
)
!=
(
file
->
mode
&
CHMOD_BITS
))
&&
(
unsigned
)(
st
->
st_mode
&
CHMOD_BITS
)
!=
(
file
->
mode
&
CHMOD_BITS
))
return
0
;
return
0
;
if
(
am_root
&&
preserve_uid
&&
st
->
st_uid
!=
F_UID
(
file
))
if
(
am_root
&&
preserve_uid
&&
st
->
st_uid
!=
F_UID
(
file
))
...
@@ -547,7 +547,7 @@ void itemize(struct file_struct *file, int ndx, int statret, STRUCT_STAT *st,
...
@@ -547,7 +547,7 @@ void itemize(struct file_struct *file, int ndx, int statret, STRUCT_STAT *st,
&&
(
!
(
iflags
&
ITEM_XNAME_FOLLOWS
)
||
*
xname
))
&&
(
!
(
iflags
&
ITEM_XNAME_FOLLOWS
)
||
*
xname
))
||
(
keep_time
&&
cmp_time
(
file
->
modtime
,
st
->
st_mtime
)
!=
0
))
||
(
keep_time
&&
cmp_time
(
file
->
modtime
,
st
->
st_mtime
)
!=
0
))
iflags
|=
ITEM_REPORT_TIME
;
iflags
|=
ITEM_REPORT_TIME
;
if
((
file
->
mode
&
CHMOD_BITS
)
!=
(
st
->
st_
mode
&
CHMOD_BITS
))
if
((
unsigned
)(
st
->
st_mode
&
CHMOD_BITS
)
!=
(
file
->
mode
&
CHMOD_BITS
))
iflags
|=
ITEM_REPORT_PERMS
;
iflags
|=
ITEM_REPORT_PERMS
;
if
(
preserve_uid
&&
am_root
&&
F_UID
(
file
)
!=
st
->
st_uid
)
if
(
preserve_uid
&&
am_root
&&
F_UID
(
file
)
!=
st
->
st_uid
)
iflags
|=
ITEM_REPORT_OWNER
;
iflags
|=
ITEM_REPORT_OWNER
;
...
@@ -910,8 +910,8 @@ static int try_dests_non(struct file_struct *file, char *fname, int ndx,
...
@@ -910,8 +910,8 @@ static int try_dests_non(struct file_struct *file, char *fname, int ndx,
char
lnk
[
MAXPATHLEN
];
char
lnk
[
MAXPATHLEN
];
int
best_match
=
-
1
;
int
best_match
=
-
1
;
int
match_level
=
0
;
int
match_level
=
0
;
uint32
*
devp
;
enum
nonregtype
type
;
enum
nonregtype
type
;
uint32
*
devp
;
int
len
,
j
=
0
;
int
len
,
j
=
0
;
#ifndef SUPPORT_LINKS
#ifndef SUPPORT_LINKS
...
@@ -1340,7 +1340,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
...
@@ -1340,7 +1340,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
t
=
"special file"
;
t
=
"special file"
;
}
}
if
(
statret
==
0
if
(
statret
==
0
&&
(
st
.
st_mode
&
~
CHMOD_BITS
)
==
(
file
->
mode
&
~
CHMOD_BITS
)
&&
(
unsigned
)(
st
.
st_mode
&
~
CHMOD_BITS
)
==
(
file
->
mode
&
~
CHMOD_BITS
)
&&
st
.
st_rdev
==
rdev
)
{
&&
st
.
st_rdev
==
rdev
)
{
/* The device or special file is identical. */
/* The device or special file is identical. */
if
(
itemizing
)
if
(
itemizing
)
...
...
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