diff options
author | mouring <mouring> | 2001-02-09 02:11:24 +0000 |
---|---|---|
committer | mouring <mouring> | 2001-02-09 02:11:24 +0000 |
commit | 8d39bf8f2992756df4786b70db09bb6bd22a8b1c (patch) | |
tree | 4badbfbadb6dcde50f6cda57c7ca229ebd09dc5f /scp.c | |
parent | 4663cb7b075e28c7e6abc0c52f7aacacb1be0fff (diff) | |
download | openssh-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |