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
93204cca
Commit
93204cca
authored
Oct 28, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made some more char pointers const.
parent
57d61719
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
cleanup.c
cleanup.c
+4
-4
receiver.c
receiver.c
+2
-2
No files found.
cleanup.c
View file @
93204cca
...
...
@@ -78,8 +78,8 @@ void close_all(void)
**/
int
cleanup_got_literal
=
0
;
static
char
*
cleanup_fname
;
static
char
*
cleanup_new_fname
;
static
c
onst
c
har
*
cleanup_fname
;
static
c
onst
c
har
*
cleanup_new_fname
;
static
struct
file_struct
*
cleanup_file
;
static
int
cleanup_fd_r
,
cleanup_fd_w
;
static
pid_t
cleanup_pid
=
0
;
...
...
@@ -139,7 +139,7 @@ NORETURN void _exit_cleanup(int code, const char *file, int line)
if
(
cleanup_got_literal
&&
cleanup_fname
&&
cleanup_new_fname
&&
keep_partial
&&
handle_partial_dir
(
cleanup_new_fname
,
PDIR_CREATE
))
{
char
*
fname
=
cleanup_fname
;
c
onst
c
har
*
fname
=
cleanup_fname
;
cleanup_fname
=
NULL
;
if
(
cleanup_fd_r
!=
-
1
)
close
(
cleanup_fd_r
);
...
...
@@ -213,7 +213,7 @@ void cleanup_disable(void)
}
void
cleanup_set
(
c
har
*
fnametmp
,
char
*
fname
,
struct
file_struct
*
file
,
void
cleanup_set
(
c
onst
char
*
fnametmp
,
const
char
*
fname
,
struct
file_struct
*
file
,
int
fd_r
,
int
fd_w
)
{
cleanup_fname
=
fnametmp
;
...
...
receiver.c
View file @
93204cca
...
...
@@ -83,10 +83,10 @@ static int updating_basis;
* As long as it's unique, rsync will work.
*/
int
get_tmpname
(
char
*
fnametmp
,
char
*
fname
)
int
get_tmpname
(
char
*
fnametmp
,
c
onst
c
har
*
fname
)
{
int
maxname
,
added
,
length
=
0
;
char
*
f
;
c
onst
c
har
*
f
;
if
(
tmpdir
)
{
/* Note: this can't overflow, so the return value is safe */
...
...
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