Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
15954da
)
Made log_open() non-static and moved log_close() next to it.
author
Wayne Davison
<wayned@samba.org>
Fri, 18 Feb 2005 17:33:43 +0000
(17:33 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 18 Feb 2005 17:33:43 +0000
(17:33 +0000)
log.c
patch
|
blob
|
blame
|
history
diff --git
a/log.c
b/log.c
index
905c64a
..
d191ea1
100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-87,7
+87,7
@@
static char const *rerr_name(int code)
return NULL;
}
return NULL;
}
-
static
void log_open(void)
+void log_open(void)
{
if (logfname && !logfile) {
extern int orig_umask;
{
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) {
static void logit(int priority, char *buf)
{
if (logfname) {
@@
-155,14
+163,6
@@
void log_init(void)
#endif
}
#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)
/* this is the underlying (unformatted) rsync debugging function. Call
* it with FINFO, FERROR or FLOG */
void rwrite(enum logcode code, char *buf, int len)