summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/scp.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-10-02 19:18:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-10-02 19:18:23 +0000
commit3256fc84de41e27a9692ab20d1fcb6f9ce506cd7 (patch)
treee0f75a12c0907329e78e6e4fb082d14d12bf47de /usr.bin/ssh/scp.c
parent525458690bad9a7e8000864dc3a3a7e424ec8060 (diff)
Wall
Diffstat (limited to 'usr.bin/ssh/scp.c')
-rw-r--r--usr.bin/ssh/scp.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c
index 64ba361ba2e..ef3b77afa23 100644
--- a/usr.bin/ssh/scp.c
+++ b/usr.bin/ssh/scp.c
@@ -42,11 +42,11 @@ and ssh has the necessary privileges.)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scp.c,v 1.7 1999/10/02 18:33:56 deraadt Exp $
+ * $Id: scp.c,v 1.8 1999/10/02 19:18:22 deraadt Exp $
*/
#include "includes.h"
-RCSID("$Id: scp.c,v 1.7 1999/10/02 18:33:56 deraadt Exp $");
+RCSID("$Id: scp.c,v 1.8 1999/10/02 19:18:22 deraadt Exp $");
#include "ssh.h"
#include "xmalloc.h"
@@ -61,6 +61,7 @@ static struct timeval start;
unsigned long statbytes = 0;
unsigned long totalbytes = 0;
void progressmeter(int);
+int getttywidth(void);
/* This is set to non-zero to enable verbose mode. */
int verbose = 0;
@@ -960,7 +961,7 @@ run_err(const char *fmt, ...)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scp.c,v 1.7 1999/10/02 18:33:56 deraadt Exp $
+ * $Id: scp.c,v 1.8 1999/10/02 19:18:22 deraadt Exp $
*/
char *
@@ -1051,7 +1052,8 @@ lostconn(signo)
exit(1);
}
-void alarmtimer(int wait)
+void
+alarmtimer(int wait)
{
struct itimerval itv;
@@ -1061,12 +1063,14 @@ void alarmtimer(int wait)
setitimer(ITIMER_REAL, &itv, NULL);
}
-static void updateprogressmeter(void)
+void
+updateprogressmeter(void)
{
progressmeter(0);
}
-void progressmeter(int flag)
+void
+progressmeter(int flag)
{
static const char prefixes[] = " KMGTP";
static struct timeval lastupdate;
@@ -1153,7 +1157,8 @@ void progressmeter(int flag)
fflush(stdout);
}
-int getttywidth(void)
+int
+getttywidth(void)
{
struct winsize winsize;