diff --git a/sbin/wsconsctl/mousecfg.c b/sbin/wsconsctl/mousecfg.c index 7fd7bff3d..3b9d0da28 100644 --- a/sbin/wsconsctl/mousecfg.c +++ b/sbin/wsconsctl/mousecfg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mousecfg.c,v 1.10 2023/07/02 21:44:04 bru Exp $ */ +/* $OpenBSD: mousecfg.c,v 1.11 2024/09/25 19:56:33 bru Exp $ */ /* * Copyright (c) 2017 Ulf Brosziewski @@ -222,8 +222,10 @@ mousecfg_put_field(int fd, struct wsmouse_parameters *field) || (err = ioctl(fd, WSMOUSEIO_GETPARAMS, field))) return err; - for (i = 0; i < field->nparams; i++) + for (i = 0; i < field->nparams; i++) { + n = index_of(field->params[i].key); cfg_buffer[n].value = field->params[i].value; + } return (0); } diff --git a/usr.bin/ssh/readconf.h b/usr.bin/ssh/readconf.h index 9447d5d6e..a1e43852c 100644 --- a/usr.bin/ssh/readconf.h +++ b/usr.bin/ssh/readconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: readconf.h,v 1.156 2024/03/04 02:16:11 djm Exp $ */ +/* $OpenBSD: readconf.h,v 1.157 2024/09/25 23:01:39 jsg Exp $ */ /* * Author: Tatu Ylonen @@ -19,7 +19,6 @@ /* Data structure for representing option data. */ #define SSH_MAX_HOSTS_FILES 32 -#define MAX_CANON_DOMAINS 32 #define PATH_MAX_SUN (sizeof((struct sockaddr_un *)0)->sun_path) struct allowed_cname { diff --git a/usr.bin/ssh/ssh.h b/usr.bin/ssh/ssh.h index e40f04aa3..012243e48 100644 --- a/usr.bin/ssh/ssh.h +++ b/usr.bin/ssh/ssh.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.h,v 1.90 2020/07/14 23:57:01 djm Exp $ */ +/* $OpenBSD: ssh.h,v 1.91 2024/09/25 23:01:39 jsg Exp $ */ /* * Author: Tatu Ylonen @@ -12,9 +12,6 @@ * called by a name other than "ssh" or "Secure Shell". */ -/* Cipher used for encrypting authentication files. */ -#define SSH_AUTHFILE_CIPHER SSH_CIPHER_3DES - /* Default port number. */ #define SSH_DEFAULT_PORT 22 @@ -36,11 +33,9 @@ * * Minor protocol version. Different version indicates minor incompatibility * that does not prevent interoperation. + * + * We support only SSH2 */ -#define PROTOCOL_MAJOR_1 1 -#define PROTOCOL_MINOR_1 5 - -/* We support only SSH2 */ #define PROTOCOL_MAJOR_2 2 #define PROTOCOL_MINOR_2 0 @@ -72,12 +67,6 @@ */ #define SSH_ASKPASS_REQUIRE_ENV "SSH_ASKPASS_REQUIRE" -/* - * Force host key length and server key length to differ by at least this - * many bits. This is to make double encryption with rsaref work. - */ -#define SSH_KEY_BITS_RESERVED 128 - /* * Length of the session key in bytes. (Specified as 256 bits in the * protocol.) diff --git a/usr.sbin/vmd/config.c b/usr.sbin/vmd/config.c index 3fb2c9b40..45a9fddc3 100644 --- a/usr.sbin/vmd/config.c +++ b/usr.sbin/vmd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.75 2024/02/05 21:58:09 dv Exp $ */ +/* $OpenBSD: config.c,v 1.76 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -19,20 +19,15 @@ #include #include #include -#include -#include -#include #include #include #include -#include #include #include #include #include -#include #include #include diff --git a/usr.sbin/vmd/control.c b/usr.sbin/vmd/control.c index e465ff13b..50279d458 100644 --- a/usr.sbin/vmd/control.c +++ b/usr.sbin/vmd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.42 2024/01/18 14:49:59 claudio Exp $ */ +/* $OpenBSD: control.c,v 1.43 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2010-2015 Reyk Floeter @@ -22,14 +22,9 @@ #include #include #include -#include - -#include #include #include -#include -#include #include #include #include diff --git a/usr.sbin/vmd/dhcp.c b/usr.sbin/vmd/dhcp.c index 67ab546b4..256a29f51 100644 --- a/usr.sbin/vmd/dhcp.c +++ b/usr.sbin/vmd/dhcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcp.c,v 1.13 2023/07/13 18:31:59 dv Exp $ */ +/* $OpenBSD: dhcp.c,v 1.14 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2017 Reyk Floeter @@ -17,7 +17,6 @@ */ #include -#include #include #include diff --git a/usr.sbin/vmd/fw_cfg.c b/usr.sbin/vmd/fw_cfg.c index be84dc183..a42363365 100644 --- a/usr.sbin/vmd/fw_cfg.c +++ b/usr.sbin/vmd/fw_cfg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fw_cfg.c,v 1.9 2024/07/09 09:31:37 dv Exp $ */ +/* $OpenBSD: fw_cfg.c,v 1.10 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2018 Claudio Jeker * @@ -15,7 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include -#include #include /* bios_memmap_t */ #include #include diff --git a/usr.sbin/vmd/i8253.c b/usr.sbin/vmd/i8253.c index 7cea3fa38..9c3cced61 100644 --- a/usr.sbin/vmd/i8253.c +++ b/usr.sbin/vmd/i8253.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i8253.c,v 1.41 2024/07/10 09:27:33 dv Exp $ */ +/* $OpenBSD: i8253.c,v 1.42 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2016 Mike Larkin * @@ -23,7 +23,6 @@ #include #include -#include #include #include diff --git a/usr.sbin/vmd/loadfile_elf.c b/usr.sbin/vmd/loadfile_elf.c index efe1e974b..2b62ca075 100644 --- a/usr.sbin/vmd/loadfile_elf.c +++ b/usr.sbin/vmd/loadfile_elf.c @@ -1,5 +1,5 @@ /* $NetBSD: loadfile.c,v 1.10 2000/12/03 02:53:04 tsutsui Exp $ */ -/* $OpenBSD: loadfile_elf.c,v 1.49 2024/09/11 15:42:52 bluhm Exp $ */ +/* $OpenBSD: loadfile_elf.c,v 1.50 2024/09/26 01:45:13 jsg Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -82,19 +82,15 @@ */ #include /* PAGE_SIZE PAGE_MASK roundup */ -#include #include #include #include -#include #include #include #include #include -#include #include -#include #include diff --git a/usr.sbin/vmd/parse.y b/usr.sbin/vmd/parse.y index 18211393e..3f6866eb5 100644 --- a/usr.sbin/vmd/parse.y +++ b/usr.sbin/vmd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.70 2024/09/11 15:42:52 bluhm Exp $ */ +/* $OpenBSD: parse.y,v 1.71 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2007-2016 Reyk Floeter @@ -26,7 +26,6 @@ #include #include #include -#include #include @@ -37,10 +36,8 @@ #include #include -#include #include #include -#include #include #include #include diff --git a/usr.sbin/vmd/pci.c b/usr.sbin/vmd/pci.c index 0dbe846fd..b159977f4 100644 --- a/usr.sbin/vmd/pci.c +++ b/usr.sbin/vmd/pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci.c,v 1.33 2024/07/10 09:27:33 dv Exp $ */ +/* $OpenBSD: pci.c,v 1.34 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2015 Mike Larkin @@ -20,7 +20,6 @@ #include #include -#include #include #include @@ -28,7 +27,6 @@ #include "vmd.h" #include "pci.h" -#include "i8259.h" #include "atomicio.h" struct pci pci; diff --git a/usr.sbin/vmd/priv.c b/usr.sbin/vmd/priv.c index 744f9c563..44e096cae 100644 --- a/usr.sbin/vmd/priv.c +++ b/usr.sbin/vmd/priv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: priv.c,v 1.24 2024/01/18 14:49:59 claudio Exp $ */ +/* $OpenBSD: priv.c,v 1.25 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2016 Reyk Floeter @@ -17,12 +17,8 @@ */ #include -#include -#include #include -#include #include -#include #include #include @@ -34,13 +30,10 @@ #include #include -#include -#include #include #include #include #include -#include #include #include "proc.h" diff --git a/usr.sbin/vmd/proc.c b/usr.sbin/vmd/proc.c index 950c17d6e..ef14fa3e1 100644 --- a/usr.sbin/vmd/proc.c +++ b/usr.sbin/vmd/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.25 2024/04/09 15:48:01 tobhe Exp $ */ +/* $OpenBSD: proc.c,v 1.26 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2010 - 2016 Reyk Floeter @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include diff --git a/usr.sbin/vmd/proc.h b/usr.sbin/vmd/proc.h index 4ec431fab..562135aac 100644 --- a/usr.sbin/vmd/proc.h +++ b/usr.sbin/vmd/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.24 2024/02/20 21:40:37 dv Exp $ */ +/* $OpenBSD: proc.h,v 1.25 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2010-2015 Reyk Floeter @@ -18,7 +18,6 @@ #include #include -#include #include #include diff --git a/usr.sbin/vmd/psp.c b/usr.sbin/vmd/psp.c index 3e69a1c12..5705e1bb0 100644 --- a/usr.sbin/vmd/psp.c +++ b/usr.sbin/vmd/psp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: psp.c,v 1.1 2024/09/11 15:42:52 bluhm Exp $ */ +/* $OpenBSD: psp.c,v 1.2 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2023, 2024 Hans-Joerg Hoexer @@ -17,11 +17,8 @@ */ #include -#include #include -#include -#include #include #include diff --git a/usr.sbin/vmd/sev.c b/usr.sbin/vmd/sev.c index 6869f257f..89272c8b3 100644 --- a/usr.sbin/vmd/sev.c +++ b/usr.sbin/vmd/sev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sev.c,v 1.3 2024/09/25 04:19:36 deraadt Exp $ */ +/* $OpenBSD: sev.c,v 1.4 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2023, 2024 Hans-Joerg Hoexer @@ -18,10 +18,7 @@ #include #include /* roundup */ -#include -#include -#include #include #include diff --git a/usr.sbin/vmd/vioblk.c b/usr.sbin/vmd/vioblk.c index cef10e32c..270016ff3 100644 --- a/usr.sbin/vmd/vioblk.c +++ b/usr.sbin/vmd/vioblk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vioblk.c,v 1.14 2024/07/10 09:27:33 dv Exp $ */ +/* $OpenBSD: vioblk.c,v 1.15 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2023 Dave Voutila @@ -16,8 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include /* PAGE_SIZE */ +#include #include #include @@ -25,7 +24,6 @@ #include #include -#include #include #include #include diff --git a/usr.sbin/vmd/vionet.c b/usr.sbin/vmd/vionet.c index 8a82e3022..377861ca9 100644 --- a/usr.sbin/vmd/vionet.c +++ b/usr.sbin/vmd/vionet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vionet.c,v 1.16 2024/07/12 14:34:08 jan Exp $ */ +/* $OpenBSD: vionet.c,v 1.17 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2023 Dave Voutila @@ -16,7 +16,6 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include #include diff --git a/usr.sbin/vmd/vioqcow2.c b/usr.sbin/vmd/vioqcow2.c index 753cce6e4..72e83be16 100644 --- a/usr.sbin/vmd/vioqcow2.c +++ b/usr.sbin/vmd/vioqcow2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vioqcow2.c,v 1.24 2023/09/14 15:25:43 dv Exp $ */ +/* $OpenBSD: vioqcow2.c,v 1.25 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2018 Ori Bernstein @@ -19,9 +19,6 @@ #include #include -#include - -#include #include #include #include diff --git a/usr.sbin/vmd/vioscsi.c b/usr.sbin/vmd/vioscsi.c index 3fb3d4eae..95bc1f46d 100644 --- a/usr.sbin/vmd/vioscsi.c +++ b/usr.sbin/vmd/vioscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vioscsi.c,v 1.24 2023/09/06 19:26:39 dv Exp $ */ +/* $OpenBSD: vioscsi.c,v 1.25 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2017 Carlos Cardenas @@ -25,10 +25,8 @@ #include #include -#include #include #include -#include #include "vmd.h" #include "vioscsi.h" diff --git a/usr.sbin/vmd/virtio.c b/usr.sbin/vmd/virtio.c index f203f822a..79402d04e 100644 --- a/usr.sbin/vmd/virtio.c +++ b/usr.sbin/vmd/virtio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: virtio.c,v 1.115 2024/07/10 09:27:33 dv Exp $ */ +/* $OpenBSD: virtio.c,v 1.116 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2015 Mike Larkin @@ -25,19 +25,14 @@ #include #include #include -#include #include #include #include #include -#include #include #include -#include -#include -#include #include #include #include diff --git a/usr.sbin/vmd/vm.c b/usr.sbin/vmd/vm.c index 01c7c4a8d..8b94fbc8a 100644 --- a/usr.sbin/vmd/vm.c +++ b/usr.sbin/vmd/vm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm.c,v 1.105 2024/09/11 15:42:52 bluhm Exp $ */ +/* $OpenBSD: vm.c,v 1.106 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2015 Mike Larkin @@ -19,28 +19,18 @@ #include /* PAGE_SIZE, MAXCOMLEN */ #include #include -#include -#include -#include -#include -#include #include #include -#include #include -#include - #include #include #include #include -#include #include #include #include -#include #include #include #include @@ -48,8 +38,6 @@ #include #include "atomicio.h" -#include "loadfile.h" -#include "mmio.h" #include "pci.h" #include "virtio.h" #include "vmd.h" diff --git a/usr.sbin/vmd/vm_agentx.c b/usr.sbin/vmd/vm_agentx.c index efe6db1c2..093ade6ee 100644 --- a/usr.sbin/vmd/vm_agentx.c +++ b/usr.sbin/vmd/vm_agentx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_agentx.c,v 1.2 2024/02/02 14:58:02 dv Exp $ */ +/* $OpenBSD: vm_agentx.c,v 1.3 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2022 Martijn van Duren @@ -21,11 +21,9 @@ #include #include -#include #include #include #include -#include #include #include diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c index 3409b529f..91ac69e6c 100644 --- a/usr.sbin/vmd/vmd.c +++ b/usr.sbin/vmd/vmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmd.c,v 1.160 2024/09/11 15:42:52 bluhm Exp $ */ +/* $OpenBSD: vmd.c,v 1.161 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -18,7 +18,6 @@ #include #include -#include #include #include #include @@ -28,7 +27,6 @@ #include #include #include -#include #include #include #include diff --git a/usr.sbin/vmd/vmm.c b/usr.sbin/vmd/vmm.c index 282716481..1da919fcb 100644 --- a/usr.sbin/vmd/vmm.c +++ b/usr.sbin/vmd/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.122 2024/09/11 15:42:52 bluhm Exp $ */ +/* $OpenBSD: vmm.c,v 1.123 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2015 Mike Larkin @@ -20,14 +20,8 @@ #include #include #include -#include #include -#include -#include -#include -#include -#include #include #include @@ -37,14 +31,10 @@ #include #include #include -#include -#include -#include #include #include #include #include -#include #include "vmd.h" #include "atomicio.h" diff --git a/usr.sbin/vmd/x86_vm.c b/usr.sbin/vmd/x86_vm.c index de8efccd5..729e0c5f9 100644 --- a/usr.sbin/vmd/x86_vm.c +++ b/usr.sbin/vmd/x86_vm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x86_vm.c,v 1.3 2024/09/11 15:42:52 bluhm Exp $ */ +/* $OpenBSD: x86_vm.c,v 1.4 2024/09/26 01:45:13 jsg Exp $ */ /* * Copyright (c) 2015 Mike Larkin * @@ -21,7 +21,6 @@ #include #include -#include #include #include #include