diff options
author | 2000-09-04 19:10:08 +0000 | |
---|---|---|
committer | 2000-09-04 19:10:08 +0000 | |
commit | 9b24c2718c5552e8923d2a853793a1e00d796bca (patch) | |
tree | aa7e474d192a91eaaa226281a46bc0a38af968ca | |
parent | fix get_last_login_time order; from andre@van-veen.de (diff) | |
download | wireguard-openbsd-9b24c2718c5552e8923d2a853793a1e00d796bca.tar.xz wireguard-openbsd-9b24c2718c5552e8923d2a853793a1e00d796bca.zip |
more cast fixes; from mouring@pconline.com
-rw-r--r-- | usr.bin/ssh/sftp-server.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ssh/sftp-server.c b/usr.bin/ssh/sftp-server.c index a1f24248f8f..a6ac2d1e58b 100644 --- a/usr.bin/ssh/sftp-server.c +++ b/usr.bin/ssh/sftp-server.c @@ -27,7 +27,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "includes.h" -RCSID("$OpenBSD: sftp-server.c,v 1.3 2000/09/01 22:32:41 markus Exp $"); +RCSID("$OpenBSD: sftp-server.c,v 1.4 2000/09/04 19:10:08 markus Exp $"); #include "ssh.h" #include "buffer.h" @@ -198,7 +198,7 @@ decode_attrib(Buffer *b) if (a.flags & SSH_FXA_HAVE_SIZE) { a.size_high = get_int(); a.size_low = get_int(); - a.size = (u_int64_t) a.size_high << 32 + a.size_low; + a.size = (((u_int64_t) a.size_high) << 32) + a.size_low; } if (a.flags & SSH_FXA_HAVE_UGID) { a.uid = get_int(); @@ -548,7 +548,7 @@ process_read(void) off_low = get_int(); len = get_int(); - off = (u_int64_t) off_high << 32 + off_low; + off = (((u_int64_t) off_high) << 32) + off_low; TRACE("read id %d handle %d off %qd len %d", id, handle, off, len); if (len > sizeof buf) { len = sizeof buf; @@ -590,7 +590,7 @@ process_write(void) off_low = get_int(); data = get_string(&len); - off = (u_int64_t) off_high << 32 + off_low; + off = (((u_int64_t) off_high) << 32) + off_low; TRACE("write id %d handle %d off %qd len %d", id, handle, off, len); fd = handle_to_fd(handle); if (fd >= 0) { @@ -779,7 +779,7 @@ ls_file(char *name, struct stat *st) { char buf[1024]; snprintf(buf, sizeof buf, "0%o %d %d %qd %d %s", - st->st_mode, st->st_uid, st->st_gid, st->st_size, st->st_mtime, + st->st_mode, st->st_uid, st->st_gid, (long long)st->st_size,(int) st->st_mtime, name); return xstrdup(buf); } |