summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
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 14d8a8af8..0095d6ff8 100644
--- a/scp.c
+++ b/scp.c
@@ -75,7 +75,7 @@
75 */ 75 */
76 76
77#include "includes.h" 77#include "includes.h"
78RCSID("$OpenBSD: scp.c,v 1.55 2001/02/08 14:38:54 deraadt Exp $"); 78RCSID("$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
220char cmd[CMDNEEDS]; /* must hold "rcp -r -p -d\0" */ 220char cmd[CMDNEEDS]; /* must hold "rcp -r -p -d\0" */
221 221
222int main(int, char *[]);
222int response(void); 223int response(void);
223void rsource(char *, struct stat *); 224void rsource(char *, struct stat *);
224void sink(int, char *[]); 225void sink(int, char *[]);
225void source(int, char *[]); 226void source(int, char *[]);
226void tolocal(int, char *[]); 227void tolocal(int, char *[]);
228char *cleanhostname(char *);
227void toremote(char *, int, char *[]); 229void toremote(char *, int, char *[]);
228void usage(void); 230void usage(void);
229 231
@@ -1110,7 +1112,7 @@ updateprogressmeter(int ignore)
1110} 1112}
1111 1113
1112int 1114int
1113foregroundproc() 1115foregroundproc(void)
1114{ 1116{
1115 static pid_t pgrp = -1; 1117 static pid_t pgrp = -1;
1116 int ctty_pgrp; 1118 int ctty_pgrp;