Revert "Fix warnings"
[derrell/samba3/.git] / source / client / client.c
index c97f6223a78cb7a8a56484d13d928246644a11d1..1410fc2f331b5c169112dc665b84ae3d2b7bdf93 100644 (file)
@@ -979,10 +979,11 @@ static int do_get(const char *rname, const char *lname_in, bool reget)
        int handle = 0, fnum;
        bool newhandle = false;
        struct timeval tp_start;
+       int read_size = io_bufsize;
        uint16 attr;
        SMB_OFF_T size;
        off_t start = 0;
-       ssize_t nread = 0;
+       off_t nread = 0;
        int rc = 0;
        struct cli_state *targetcli = NULL;
        char *targetname = NULL;