summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authormouring <mouring>2001-02-09 02:11:24 +0000
committermouring <mouring>2001-02-09 02:11:24 +0000
commit8d39bf8f2992756df4786b70db09bb6bd22a8b1c (patch)
tree4badbfbadb6dcde50f6cda57c7ca229ebd09dc5f /scp.c
parent4663cb7b075e28c7e6abc0c52f7aacacb1be0fff (diff)
downloadopenssh-8d39bf8f2992756df4786b70db09bb6bd22a8b1c.tar.gz
- itojun@cvs.openbsd.org 2001/02/08 19:30:52
sync with netbsd tree changes. - more strict prototypes, include necessary headers - use paths.h/pathnames.h decls - size_t typecase to int -> u_long
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/scp.c b/scp.c
index 14d8a8af..0095d6ff 100644
--- a/scp.c
+++ b/scp.c
@@ -75,7 +75,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: scp.c,v 1.55 2001/02/08 14:38:54 deraadt Exp $");
+RCSID("$OpenBSD: scp.c,v 1.56 2001/02/08 19:30:52 itojun Exp $");
#include "xmalloc.h"
#include "atomicio.h"
@@ -219,11 +219,13 @@ int pflag, iamremote, iamrecursive, targetshouldbedirectory;
#define CMDNEEDS 64
char cmd[CMDNEEDS]; /* must hold "rcp -r -p -d\0" */
+int main(int, char *[]);
int response(void);
void rsource(char *, struct stat *);
void sink(int, char *[]);
void source(int, char *[]);
void tolocal(int, char *[]);
+char *cleanhostname(char *);
void toremote(char *, int, char *[]);
void usage(void);
@@ -1110,7 +1112,7 @@ updateprogressmeter(int ignore)
}
int
-foregroundproc()
+foregroundproc(void)
{
static pid_t pgrp = -1;
int ctty_pgrp;