diff options
author | 2001-01-01 14:52:49 +0000 | |
---|---|---|
committer | 2001-01-01 14:52:49 +0000 | |
commit | 7cd06c2e1692d2a2bc72d8caa34686a6a8f04f53 (patch) | |
tree | 449fdea4015bd4f453d8475210bde26182a3252f /usr.bin/ssh/scp.c | |
parent | Force mask to ~0 only if hostname (kudos to james@squish.net) (diff) | |
download | wireguard-openbsd-7cd06c2e1692d2a2bc72d8caa34686a6a8f04f53.tar.xz wireguard-openbsd-7cd06c2e1692d2a2bc72d8caa34686a6a8f04f53.zip |
use shared fatal(); from stevesk@pobox.com
Diffstat (limited to 'usr.bin/ssh/scp.c')
-rw-r--r-- | usr.bin/ssh/scp.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index dbcff5d3ccb..69313bd4584 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.47 2000/12/19 23:17:57 markus Exp $"); +RCSID("$OpenBSD: scp.c,v 1.48 2001/01/01 14:52:49 markus Exp $"); #include "ssh.h" #include "xmalloc.h" @@ -182,19 +182,6 @@ do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout, int argc) return 0; } -void -fatal(const char *fmt,...) -{ - va_list ap; - char buf[1024]; - - va_start(ap, fmt); - vsnprintf(buf, sizeof(buf), fmt, ap); - va_end(ap); - fprintf(stderr, "%s\n", buf); - exit(255); -} - typedef struct { int cnt; char *buf; |