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
857e38bb
Commit
857e38bb
authored
Sep 11, 2003
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got rid of some "/* dw */" comments and fixed some line's indentation.
parent
4ea81244
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
token.c
token.c
+24
-24
No files found.
token.c
View file @
857e38bb
...
...
@@ -90,8 +90,8 @@ static int simple_recv_token(int f,char **data)
static
void
simple_send_token
(
int
f
,
int
token
,
struct
map_struct
*
buf
,
OFF_T
offset
,
int
n
)
{
extern
int
write_batch
;
/* dw */
int
hold_int
;
/* dw */
extern
int
write_batch
;
int
hold_int
;
if
(
n
>
0
)
{
int
l
=
0
;
...
...
@@ -159,8 +159,8 @@ send_deflated_token(int f, int token,
{
int
n
,
r
;
static
int
init_done
,
flush_pending
;
extern
int
write_batch
;
/* dw */
char
temp_byte
;
/* dw */
extern
int
write_batch
;
char
temp_byte
;
if
(
last_token
==
-
1
)
{
/* initialization */
...
...
@@ -193,14 +193,14 @@ send_deflated_token(int f, int token,
n
=
last_token
-
run_start
;
if
(
r
>=
0
&&
r
<=
63
)
{
write_byte
(
f
,
(
n
==
0
?
TOKEN_REL
:
TOKENRUN_REL
)
+
r
);
if
(
write_batch
)
{
/* dw */
if
(
write_batch
)
{
temp_byte
=
(
char
)(
(
n
==
0
?
TOKEN_REL
:
TOKENRUN_REL
)
+
r
);
write_batch_delta_file
(
&
temp_byte
,
sizeof
(
char
));
}
}
else
{
write_byte
(
f
,
(
n
==
0
?
TOKEN_LONG
:
TOKENRUN_LONG
));
write_int
(
f
,
run_start
);
if
(
write_batch
)
{
/* dw */
if
(
write_batch
)
{
temp_byte
=
(
char
)(
n
==
0
?
TOKEN_LONG
:
TOKENRUN_LONG
);
write_batch_delta_file
(
&
temp_byte
,
sizeof
(
temp_byte
));
write_batch_delta_file
((
char
*
)
&
run_start
,
sizeof
(
run_start
));
...
...
@@ -209,7 +209,7 @@ send_deflated_token(int f, int token,
if
(
n
!=
0
)
{
write_byte
(
f
,
n
);
write_byte
(
f
,
n
>>
8
);
if
(
write_batch
)
{
/* dw */
if
(
write_batch
)
{
write_batch_delta_file
((
char
*
)
&
n
,
sizeof
(
char
));
temp_byte
=
(
char
)
n
>>
8
;
write_batch_delta_file
(
&
temp_byte
,
sizeof
(
temp_byte
));
...
...
@@ -272,7 +272,7 @@ send_deflated_token(int f, int token,
obuf
[
0
]
=
DEFLATED_DATA
+
(
n
>>
8
);
obuf
[
1
]
=
n
;
write_buf
(
f
,
obuf
,
n
+
2
);
if
(
write_batch
)
/* dw */
if
(
write_batch
)
write_batch_delta_file
(
obuf
,
n
+
2
);
}
}
...
...
@@ -283,7 +283,7 @@ send_deflated_token(int f, int token,
if
(
token
==
-
1
)
{
/* end of file - clean up */
write_byte
(
f
,
END_FLAG
);
if
(
write_batch
)
{
/* dw */
if
(
write_batch
)
{
temp_byte
=
END_FLAG
;
write_batch_delta_file
((
char
*
)
&
temp_byte
,
sizeof
(
temp_byte
));
}
...
...
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