diff options
author | mouring <mouring> | 2001-01-02 04:55:52 +0000 |
---|---|---|
committer | mouring <mouring> | 2001-01-02 04:55:52 +0000 |
commit | 0e89f6914bee9553e852408df484877974026ea6 (patch) | |
tree | 7a0343fbf47973169264f623851deea710c23018 /scp.c | |
parent | a840b3239dc0da960e0b23a5364706d0589a43f4 (diff) | |
download | openssh-0e89f6914bee9553e852408df484877974026ea6.tar.gz |
20010102
- (bal) OpenBSD CVS Update
- markus@cvs.openbsd.org 2001/01/01 14:52:49
[scp.c]
use shared fatal(); from stevesk@pobox.com
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -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" @@ -198,19 +198,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; |