diff options
author | Günther Deschner <gd@samba.org> | 2007-08-29 14:08:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:21 -0500 |
commit | 6824731cb09dcf736f5282d55723fffb253cec95 (patch) | |
tree | 2828c17a2d79ade4c88c8b87e8fcc09a53a8c883 | |
parent | 1a13b09894ea8f6424cb904c83a4cd6214040e89 (diff) | |
download | samba-6824731cb09dcf736f5282d55723fffb253cec95.tar.gz samba-6824731cb09dcf736f5282d55723fffb253cec95.tar.xz samba-6824731cb09dcf736f5282d55723fffb253cec95.zip |
r24783: Remove unused off_t type.
Guenther
(This used to be commit 85c816c27f2b9d20dfaf411b12ec1803a49574ce)
-rw-r--r-- | source3/libgpo/gpo_filesync.c | 3 | ||||
-rw-r--r-- | source3/utils/net_rpc_printer.c | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/source3/libgpo/gpo_filesync.c b/source3/libgpo/gpo_filesync.c index cb49dcbda7..81fdab3ee9 100644 --- a/source3/libgpo/gpo_filesync.c +++ b/source3/libgpo/gpo_filesync.c @@ -44,7 +44,6 @@ NTSTATUS gpo_copy_file(TALLOC_CTX *mem_ctx, char *data = NULL; static int io_bufsize = 64512; int read_size = io_bufsize; - off_t start = 0; off_t nread = 0; if ((fnum = cli_open(cli, nt_path, O_RDONLY, DENY_NONE)) == -1) { @@ -64,7 +63,7 @@ NTSTATUS gpo_copy_file(TALLOC_CTX *mem_ctx, while (1) { - int n = cli_read(cli, fnum, data, nread + start, read_size); + int n = cli_read(cli, fnum, data, nread, read_size); if (n <= 0) break; diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index 1f0936cf96..cba88370db 100644 --- a/source3/utils/net_rpc_printer.c +++ b/source3/utils/net_rpc_printer.c @@ -333,7 +333,6 @@ NTSTATUS net_copy_file(TALLOC_CTX *mem_ctx, static int io_bufsize = 64512; int read_size = io_bufsize; char *data = NULL; - off_t start = 0; off_t nread = 0; @@ -401,14 +400,14 @@ NTSTATUS net_copy_file(TALLOC_CTX *mem_ctx, /* copying file */ int n, ret; - n = cli_read(cli_share_src, fnum_src, data, nread + start, + n = cli_read(cli_share_src, fnum_src, data, nread, read_size); if (n <= 0) break; ret = cli_write(cli_share_dst, fnum_dst, 0, data, - nread + start, n); + nread, n); if (n != ret) { d_fprintf(stderr, "Error writing file: %s\n", |