diff options
author | 2015-01-14 13:54:13 +0000 | |
---|---|---|
committer | 2015-01-14 13:54:13 +0000 | |
commit | b110652143650128975fb4186ff7426234f958e8 (patch) | |
tree | d019d854301da68d5034e278e6537e040f5547b0 /usr.bin/ssh/progressmeter.c | |
parent | switch to sshbuf/sshkey; with & ok djm@ (diff) | |
download | wireguard-openbsd-b110652143650128975fb4186ff7426234f958e8.tar.xz wireguard-openbsd-b110652143650128975fb4186ff7426234f958e8.zip |
update sftp client and server to new buffer API.
pretty much just mechanical changes; with & ok markus
Diffstat (limited to 'usr.bin/ssh/progressmeter.c')
-rw-r--r-- | usr.bin/ssh/progressmeter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/progressmeter.c b/usr.bin/ssh/progressmeter.c index 5c4ae992d57..5aeaee647ed 100644 --- a/usr.bin/ssh/progressmeter.c +++ b/usr.bin/ssh/progressmeter.c @@ -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. * @@ -63,7 +63,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 */ @@ -246,7 +246,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; |