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
e35080ce
Commit
e35080ce
authored
Apr 09, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
long int and signedness fix from Nelson Beebe
parent
ce8149b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
match.c
match.c
+7
-4
tls.c
tls.c
+2
-2
No files found.
match.c
View file @
e35080ce
...
...
@@ -153,9 +153,12 @@ static void hash_search(int f,struct sum_struct *s,
last_i
=
-
1
;
if
(
verbose
>
2
)
rprintf
(
FINFO
,
"hash search b=%d len=%.0f
\n
"
,
s
->
n
,(
double
)
len
);
rprintf
(
FINFO
,
"hash search b=%ld len=%.0f
\n
"
,
(
long
)
s
->
n
,
(
double
)
len
);
k
=
MIN
(
len
,
s
->
n
);
/* cast is to make s->n signed; it should always be reasonably
* small */
k
=
MIN
(
len
,
(
OFF_T
)
s
->
n
);
map
=
(
schar
*
)
map_ptr
(
buf
,
0
,
k
);
...
...
@@ -170,8 +173,8 @@ static void hash_search(int f,struct sum_struct *s,
end
=
len
+
1
-
s
->
sums
[
s
->
count
-
1
].
len
;
if
(
verbose
>
3
)
rprintf
(
FINFO
,
"hash search s->n=%d len=%.0f count=%
d
\n
"
,
s
->
n
,(
double
)
len
,
s
->
count
);
rprintf
(
FINFO
,
"hash search s->n=%ld len=%.0f count=%l
d
\n
"
,
(
long
)
s
->
n
,
(
double
)
len
,
(
long
)
s
->
count
);
do
{
tag
t
=
gettag2
(
s1
,
s2
);
...
...
tls.c
View file @
e35080ce
...
...
@@ -115,9 +115,9 @@ static void list_file (const char *fname)
/* NB: need to pass size as a double because it might be be
* too large for a long. */
printf
(
"%s %12.0f %6
d.%-6
d %6d %s %s%s
\n
"
,
printf
(
"%s %12.0f %6
ld.%-6l
d %6d %s %s%s
\n
"
,
permbuf
,
(
double
)
buf
.
st_size
,
buf
.
st_uid
,
buf
.
st_gid
,
(
long
)
buf
.
st_uid
,
(
long
)
buf
.
st_gid
,
buf
.
st_nlink
,
datebuf
,
fname
,
linkbuf
);
}
...
...
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