From 0b3e74b6bcf571e25e5fffc2d71e95528a2853e6 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 7 Aug 2021 01:55:02 +0000 Subject: sftp-client.c needs poll.h remove unused variable --- usr.bin/ssh/sftp-client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/ssh/sftp-client.c b/usr.bin/ssh/sftp-client.c index ce132196b9b..9ecdcfcf3e9 100644 --- a/usr.bin/ssh/sftp-client.c +++ b/usr.bin/ssh/sftp-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp-client.c,v 1.151 2021/08/07 00:14:17 djm Exp $ */ +/* $OpenBSD: sftp-client.c,v 1.152 2021/08/07 01:55:01 djm Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller * @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -2123,7 +2124,7 @@ do_crossload(struct sftp_conn *from, struct sftp_conn *to, Attrib *a, int preserve_flag) { struct sshbuf *msg; - int write_error, read_error, lmodified = 0, r; + int write_error, read_error, r; u_int64_t offset = 0, size; u_int id, buflen, num_req, max_req, status = SSH2_FX_OK; u_int num_upload_req; @@ -2245,7 +2246,6 @@ do_crossload(struct sftp_conn *from, struct sftp_conn *to, if (len > req->len) fatal("Received more data than asked for " "%zu > %zu", len, req->len); - lmodified = 1; /* Write this chunk out to the destination */ sshbuf_reset(msg); -- cgit v1.2.3