Skip to content
Permalink
Browse files
upstream commit
update sftp client and server to new buffer API. pretty
 much just mechanical changes; with & ok markus
  • Loading branch information
djmdjm committed Jan 14, 2015
1 parent 139ca81 commit 7d845f4
Show file tree
Hide file tree
Showing 9 changed files with 972 additions and 668 deletions.
@@ -1,4 +1,4 @@
/* $OpenBSD: progressmeter.c,v 1.40 2013/09/19 00:24:52 djm Exp $ */
/* $OpenBSD: progressmeter.c,v 1.41 2015/01/14 13:54:13 djm Exp $ */
/*
* Copyright (c) 2003 Nils Nordman. All rights reserved.
*
@@ -65,7 +65,7 @@ static void update_progress_meter(int);

static time_t start; /* start progress */
static time_t last_update; /* last progress update */
static char *file; /* name of the file being transferred */
static const char *file; /* name of the file being transferred */
static off_t start_pos; /* initial position of transfer */
static off_t end_pos; /* ending position of transfer */
static off_t cur_pos; /* transfer position as of last refresh */
@@ -248,7 +248,7 @@ update_progress_meter(int ignore)
}

void
start_progress_meter(char *f, off_t filesize, off_t *ctr)
start_progress_meter(const char *f, off_t filesize, off_t *ctr)
{
start = last_update = monotime();
file = f;
@@ -1,4 +1,4 @@
/* $OpenBSD: progressmeter.h,v 1.2 2006/03/25 22:22:43 djm Exp $ */
/* $OpenBSD: progressmeter.h,v 1.3 2015/01/14 13:54:13 djm Exp $ */
/*
* Copyright (c) 2002 Nils Nordman. All rights reserved.
*
@@ -23,5 +23,5 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

void start_progress_meter(char *, off_t, off_t *);
void start_progress_meter(const char *, off_t, off_t *);
void stop_progress_meter(void);

0 comments on commit 7d845f4

Please sign in to comment.