git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60727ac
)
r1698: fix build.
author
Günther Deschner
<gd@samba.org>
Tue, 10 Aug 2004 16:42:58 +0000
(16:42 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:52:19 +0000
(10:52 -0500)
guenther
(This used to be commit
925e28d0cbd9667bceb0762ef1e429735250c209
)
source3/utils/net_rpc_printer.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_rpc_printer.c
b/source3/utils/net_rpc_printer.c
index b7d2438df7ce54a4369ddd3c73b6fcbe3bbc0467..e4197d72ce7f627c03ddf96cbb0bf12a86672ab9 100644
(file)
--- a/
source3/utils/net_rpc_printer.c
+++ b/
source3/utils/net_rpc_printer.c
@@
-369,13
+369,14
@@
NTSTATUS net_copy_file(TALLOC_CTX *mem_ctx,
while (is_file) {
- int n = cli_read(cli_share_src, fnum_src, data, nread + start,
+ int n, ret;
+ n = cli_read(cli_share_src, fnum_src, data, nread + start,
read_size);
if (n <= 0)
break;
-
int
ret = cli_write(cli_share_dst, fnum_dst, 0, data,
+ ret = cli_write(cli_share_dst, fnum_dst, 0, data,
nread + start, n);
if (n != ret) {