diff options
author | 2001-02-08 19:30:51 +0000 | |
---|---|---|
committer | 2001-02-08 19:30:51 +0000 | |
commit | fd1ec3d2fd5cb57baae503a9c977a1308cb64f90 (patch) | |
tree | 6b501533ef8a71a77330c5cd8d7a33590c5a9689 /usr.bin/ssh/scp.c | |
parent | drop references to ssl(8). markus ok (diff) | |
download | wireguard-openbsd-fd1ec3d2fd5cb57baae503a9c977a1308cb64f90.tar.xz wireguard-openbsd-fd1ec3d2fd5cb57baae503a9c977a1308cb64f90.zip |
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 'usr.bin/ssh/scp.c')
-rw-r--r-- | usr.bin/ssh/scp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index edfcafabd82..48fe89f9b69 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/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" @@ -205,11 +205,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); @@ -1080,7 +1082,7 @@ updateprogressmeter(int ignore) } int -foregroundproc() +foregroundproc(void) { static pid_t pgrp = -1; int ctty_pgrp; |