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
ae682c3e
Commit
ae682c3e
authored
Aug 19, 2000
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
got rid of some unused variables
parent
99994aef
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
25 deletions
+2
-25
authenticate.c
authenticate.c
+1
-2
io.c
io.c
+1
-16
loadparm.c
loadparm.c
+0
-4
main.c
main.c
+0
-1
sender.c
sender.c
+0
-2
No files found.
authenticate.c
View file @
ae682c3e
...
...
@@ -135,7 +135,6 @@ static int get_secret(int module, char *user, char *secret, int len)
static
char
*
getpassf
(
char
*
filename
)
{
char
buffer
[
100
];
int
len
=
0
;
int
fd
=
0
;
STRUCT_STAT
st
;
int
ok
=
1
;
...
...
@@ -170,7 +169,7 @@ static char *getpassf(char *filename)
if
(
envpw
)
rprintf
(
FERROR
,
"RSYNC_PASSWORD environment variable ignored
\n
"
);
buffer
[
sizeof
(
buffer
)
-
1
]
=
'\0'
;
if
(
(
len
=
read
(
fd
,
buffer
,
sizeof
(
buffer
)
-
1
)
)
>
0
)
if
(
read
(
fd
,
buffer
,
sizeof
(
buffer
)
-
1
)
>
0
)
{
char
*
p
=
strtok
(
buffer
,
"
\n\r
"
);
close
(
fd
);
...
...
io.c
View file @
ae682c3e
...
...
@@ -39,16 +39,10 @@ extern int verbose;
extern
int
io_timeout
;
extern
struct
stats
stats
;
static
int
buffer_f_in
=
-
1
;
static
int
io_error_fd
=
-
1
;
static
void
read_loop
(
int
fd
,
char
*
buf
,
int
len
);
void
setup_readbuffer
(
int
f_in
)
{
buffer_f_in
=
f_in
;
}
static
void
check_timeout
(
void
)
{
extern
int
am_server
,
am_daemon
;
...
...
@@ -323,11 +317,7 @@ unsigned char read_byte(int f)
return
c
;
}
/* write len bytes to fd, possibly reading from buffer_f_in if set
in order to unclog the pipe. don't return until all len
bytes have been written */
/* write len bytes to fd */
static
void
writefd_unbuffered
(
int
fd
,
char
*
buf
,
int
len
)
{
int
total
=
0
;
...
...
@@ -623,8 +613,3 @@ void io_multiplexing_close(void)
io_multiplexing_out
=
0
;
}
void
io_close_input
(
int
fd
)
{
buffer_f_in
=
-
1
;
}
loadparm.c
View file @
ae682c3e
...
...
@@ -77,8 +77,6 @@ struct parm_struct
unsigned
flags
;
};
static
BOOL
bLoaded
=
False
;
#ifndef GLOBAL_NAME
#define GLOBAL_NAME "global"
#endif
...
...
@@ -734,8 +732,6 @@ BOOL lp_load(char *pszFname, int globals_only)
iServiceIndex
=
-
1
;
bRetval
=
pm_process
(
n2
,
globals_only
?
NULL
:
do_section
,
do_parameter
);
bLoaded
=
True
;
return
(
bRetval
);
}
...
...
main.c
View file @
ae682c3e
...
...
@@ -356,7 +356,6 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
close
(
recv_pipe
[
1
]);
close
(
error_pipe
[
1
]);
io_close_input
(
f_in
);
if
(
f_in
!=
f_out
)
close
(
f_in
);
io_start_buffering
(
f_out
);
...
...
sender.c
View file @
ae682c3e
...
...
@@ -97,8 +97,6 @@ void send_files(struct file_list *flist,int f_out,int f_in)
if
(
verbose
>
2
)
rprintf
(
FINFO
,
"send_files starting
\n
"
);
setup_readbuffer
(
f_in
);
while
(
1
)
{
int
offset
=
0
;
...
...
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