summaryrefslogtreecommitdiff
path: root/source/libgpo
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-08-29 14:08:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:21 -0500
commit85c816c27f2b9d20dfaf411b12ec1803a49574ce (patch)
tree642f4e72d1bb2f7b96d3bd0f764008aede43e046 /source/libgpo
parentf7e8df81ef9e1deadb1251e5e5959e90a4432f40 (diff)
downloadsamba-85c816c27f2b9d20dfaf411b12ec1803a49574ce.tar.gz
r24783: Remove unused off_t type.
Guenther
Diffstat (limited to 'source/libgpo')
-rw-r--r--source/libgpo/gpo_filesync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/libgpo/gpo_filesync.c b/source/libgpo/gpo_filesync.c
index cb49dcbda7f..81fdab3ee9c 100644
--- a/source/libgpo/gpo_filesync.c
+++ b/source/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;