summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authormouring <mouring>2001-01-02 04:55:52 +0000
committermouring <mouring>2001-01-02 04:55:52 +0000
commit0e89f6914bee9553e852408df484877974026ea6 (patch)
tree7a0343fbf47973169264f623851deea710c23018 /scp.c
parenta840b3239dc0da960e0b23a5364706d0589a43f4 (diff)
downloadopenssh-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.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/scp.c b/scp.c
index 1fb87f42..74774928 100644
--- a/scp.c
+++ b/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"
@@ -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;