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
2267efea
Commit
2267efea
authored
Feb 18, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made log_open() non-static and moved log_close() next to it.
parent
15954da0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
log.c
log.c
+9
-9
No files found.
log.c
View file @
2267efea
...
...
@@ -87,7 +87,7 @@ static char const *rerr_name(int code)
return
NULL
;
}
static
void
log_open
(
void
)
void
log_open
(
void
)
{
if
(
logfname
&&
!
logfile
)
{
extern
int
orig_umask
;
...
...
@@ -102,6 +102,14 @@ static void log_open(void)
}
}
void
log_close
(
void
)
{
if
(
logfile
)
{
fclose
(
logfile
);
logfile
=
NULL
;
}
}
static
void
logit
(
int
priority
,
char
*
buf
)
{
if
(
logfname
)
{
...
...
@@ -155,14 +163,6 @@ void log_init(void)
#endif
}
void
log_close
(
void
)
{
if
(
logfile
)
{
fclose
(
logfile
);
logfile
=
NULL
;
}
}
/* this is the underlying (unformatted) rsync debugging function. Call
* it with FINFO, FERROR or FLOG */
void
rwrite
(
enum
logcode
code
,
char
*
buf
,
int
len
)
...
...
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