diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-28 15:21:14 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-03-28 15:32:02 +0100 |
commit | 8f6b03b673ff9d2bc012eef0e2e093b4f02db362 (patch) | |
tree | d92c52e26217514093715dce2b2c2fd1b10d64e4 /source3 | |
parent | 5273f05b8952f9f705064e08161666042ed3fd58 (diff) | |
download | samba-8f6b03b673ff9d2bc012eef0e2e093b4f02db362.tar.gz samba-8f6b03b673ff9d2bc012eef0e2e093b4f02db362.tar.bz2 samba-8f6b03b673ff9d2bc012eef0e2e093b4f02db362.zip |
More ssize_t->SMB_OFF_T
(This used to be commit 8dd6458049d1b9d6849730ac19c39b049a68f302)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/client.c | 2 | ||||
-rw-r--r-- | source3/libsmb/clireadwrite.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 0b4438d6b2..882ed4dbdd 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -981,7 +981,7 @@ static int do_get(const char *rname, const char *lname_in, bool reget) uint16 attr; SMB_OFF_T size; off_t start = 0; - ssize_t nread = 0; + SMB_OFF_T nread = 0; int rc = 0; struct cli_state *targetcli = NULL; char *targetname = NULL; diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c index f292fcb2d0..668a2693d3 100644 --- a/source3/libsmb/clireadwrite.c +++ b/source3/libsmb/clireadwrite.c @@ -191,7 +191,7 @@ struct cli_pull_state { /* * For how many bytes did we send requests already? */ - off_t requested; + SMB_OFF_T requested; /* * Next request index to push into "sink". This walks around the "req" @@ -205,7 +205,7 @@ struct cli_pull_state { * How many bytes did we push into "sink"? */ - off_t pushed; + SMB_OFF_T pushed; }; static char *cli_pull_print(TALLOC_CTX *mem_ctx, struct async_req *req) @@ -412,7 +412,7 @@ static void cli_pull_read_done(struct async_req *read_req) async_req_done(pull_req); } -NTSTATUS cli_pull_recv(struct async_req *req, ssize_t *received) +NTSTATUS cli_pull_recv(struct async_req *req, SMB_OFF_T *received) { struct cli_pull_state *state = talloc_get_type_abort( req->private_data, struct cli_pull_state); @@ -428,7 +428,7 @@ NTSTATUS cli_pull_recv(struct async_req *req, ssize_t *received) NTSTATUS cli_pull(struct cli_state *cli, uint16_t fnum, off_t start_offset, SMB_OFF_T size, size_t window_size, NTSTATUS (*sink)(char *buf, size_t n, void *priv), - void *priv, ssize_t *received) + void *priv, SMB_OFF_T *received) { TALLOC_CTX *frame = talloc_stackframe(); struct async_req *req; @@ -466,7 +466,7 @@ ssize_t cli_read(struct cli_state *cli, int fnum, char *buf, off_t offset, size_t size) { NTSTATUS status; - ssize_t ret; + SMB_OFF_T ret; status = cli_pull(cli, fnum, offset, size, size, cli_read_sink, &buf, &ret); |