summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2004-08-10 16:42:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:19 -0500
commit61b9639ac7fbefc963de74f371186183cd0e3306 (patch)
tree4c7ea2c5119113fd00818549fbcc77d935e0ef67 /source3/utils
parent60727acc3b33cb90309a43c10813fadcb94142eb (diff)
downloadsamba-61b9639ac7fbefc963de74f371186183cd0e3306.tar.gz
samba-61b9639ac7fbefc963de74f371186183cd0e3306.tar.bz2
samba-61b9639ac7fbefc963de74f371186183cd0e3306.zip
r1698: fix build.
guenther (This used to be commit 925e28d0cbd9667bceb0762ef1e429735250c209)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_printer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index b7d2438df7..e4197d72ce 100644
--- 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) {