diff options
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -75,7 +75,7 @@ | |||
75 | */ | 75 | */ |
76 | 76 | ||
77 | #include "includes.h" | 77 | #include "includes.h" |
78 | RCSID("$OpenBSD: scp.c,v 1.55 2001/02/08 14:38:54 deraadt Exp $"); | 78 | RCSID("$OpenBSD: scp.c,v 1.56 2001/02/08 19:30:52 itojun Exp $"); |
79 | 79 | ||
80 | #include "xmalloc.h" | 80 | #include "xmalloc.h" |
81 | #include "atomicio.h" | 81 | #include "atomicio.h" |
@@ -219,11 +219,13 @@ int pflag, iamremote, iamrecursive, targetshouldbedirectory; | |||
219 | #define CMDNEEDS 64 | 219 | #define CMDNEEDS 64 |
220 | char cmd[CMDNEEDS]; /* must hold "rcp -r -p -d\0" */ | 220 | char cmd[CMDNEEDS]; /* must hold "rcp -r -p -d\0" */ |
221 | 221 | ||
222 | int main(int, char *[]); | ||
222 | int response(void); | 223 | int response(void); |
223 | void rsource(char *, struct stat *); | 224 | void rsource(char *, struct stat *); |
224 | void sink(int, char *[]); | 225 | void sink(int, char *[]); |
225 | void source(int, char *[]); | 226 | void source(int, char *[]); |
226 | void tolocal(int, char *[]); | 227 | void tolocal(int, char *[]); |
228 | char *cleanhostname(char *); | ||
227 | void toremote(char *, int, char *[]); | 229 | void toremote(char *, int, char *[]); |
228 | void usage(void); | 230 | void usage(void); |
229 | 231 | ||
@@ -1110,7 +1112,7 @@ updateprogressmeter(int ignore) | |||
1110 | } | 1112 | } |
1111 | 1113 | ||
1112 | int | 1114 | int |
1113 | foregroundproc() | 1115 | foregroundproc(void) |
1114 | { | 1116 | { |
1115 | static pid_t pgrp = -1; | 1117 | static pid_t pgrp = -1; |
1116 | int ctty_pgrp; | 1118 | int ctty_pgrp; |