summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2024-10-18 05:32:52 +0000
committerDamien Miller <djm@cvs.openbsd.org>2024-10-18 05:32:52 +0000
commit16b3f0d8e7f6017a37d88205466b6fce5164862b (patch)
treecd2ae32568c7fcb33c10b7301ab05d4a2fdc4166
parent84b13199828ef76aff2941659dd20da0d424a437 (diff)
ssh-keyscan doesn't need it's own sshfatal() definition, it can
use the shared one from fatal.c based on GHPR401 from lengyijun
-rw-r--r--usr.bin/ssh/ssh-keyscan.c14
-rw-r--r--usr.bin/ssh/ssh-keyscan/Makefile4
2 files changed, 3 insertions, 15 deletions
diff --git a/usr.bin/ssh/ssh-keyscan.c b/usr.bin/ssh/ssh-keyscan.c
index 09962b4cfcf..e1579b63c7a 100644
--- a/usr.bin/ssh/ssh-keyscan.c
+++ b/usr.bin/ssh/ssh-keyscan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keyscan.c,v 1.163 2024/10/18 04:14:59 djm Exp $ */
+/* $OpenBSD: ssh-keyscan.c,v 1.164 2024/10/18 05:32:51 djm Exp $ */
/*
* Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>.
*
@@ -628,18 +628,6 @@ do_host(char *host)
}
}
-void
-sshfatal(const char *file, const char *func, int line, int showfunc,
- LogLevel level, const char *suffix, const char *fmt, ...)
-{
- va_list args;
-
- va_start(args, fmt);
- sshlogv(file, func, line, showfunc, level, suffix, fmt, args);
- va_end(args);
- cleanup_exit(255);
-}
-
static void
usage(void)
{
diff --git a/usr.bin/ssh/ssh-keyscan/Makefile b/usr.bin/ssh/ssh-keyscan/Makefile
index 28e5fba2bb0..49981aace3c 100644
--- a/usr.bin/ssh/ssh-keyscan/Makefile
+++ b/usr.bin/ssh/ssh-keyscan/Makefile
@@ -1,9 +1,9 @@
-# $OpenBSD: Makefile,v 1.16 2020/01/23 10:24:30 dtucker Exp $
+# $OpenBSD: Makefile,v 1.17 2024/10/18 05:32:51 djm Exp $
.PATH: ${.CURDIR}/..
SRCS= ssh-keyscan.c
-SRCS+= atomicio.c cleanup.c compat.c hostfile.c ssh_api.c dns.c
+SRCS+= atomicio.c cleanup.c compat.c hostfile.c ssh_api.c dns.c fatal.c
SRCS+= ${SRCS_BASE} ${SRCS_KEX} ${SRCS_KEXC} ${SRCS_KEXS} ${SRCS_KEY} \
${SRCS_PKT} ${SRCS_UTL} ${SRCS_SK_CLIENT}
PROG= ssh-keyscan