Skip to content

Commit

Permalink
sftp-client.c needs poll.h
Browse files Browse the repository at this point in the history
remove unused variable
  • Loading branch information
djmdjm committed Aug 7, 2021
1 parent 7540a7a commit f4f81c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usr.bin/ssh/sftp-client.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
*
Expand Down Expand Up @@ -31,6 +31,7 @@
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <poll.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f4f81c8

Please sign in to comment.