More ssize_t->SMB_OFF_T
authorVolker Lendecke <vl@samba.org>
Fri, 28 Mar 2008 14:21:14 +0000 (15:21 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 28 Mar 2008 14:32:02 +0000 (15:32 +0100)
source/client/client.c
source/libsmb/clireadwrite.c

index 0b4438d6b2e1bb4dd0a4ebb0bc9ed1872fc8bb27..882ed4dbdd88e07b6a54aa4de23126dc9e9e9471 100644 (file)
@@ -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;
index f292fcb2d0410ce62bd27daf6e2e77207bf5cb06..668a2693d346adbfc87549d2c07a91c51c50cf4f 100644 (file)
@@ -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);