From 5d5100d69dac69586e547cc7cd95c11e2b7ffa2a Mon Sep 17 00:00:00 2001 From: dtucker Date: Wed, 9 Nov 2022 09:01:52 +0000 Subject: [PATCH] Remove errant colon and simplify format string in error messages. Patch from vapier at chromium.org. --- usr.bin/ssh/misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/ssh/misc.c b/usr.bin/ssh/misc.c index f3534e48465..05fa81f1b65 100644 --- a/usr.bin/ssh/misc.c +++ b/usr.bin/ssh/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.177 2022/08/11 01:56:51 djm Exp $ */ +/* $OpenBSD: misc.c,v 1.178 2022/11/09 09:01:52 dtucker Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2005-2020 Damien Miller. All rights reserved. @@ -243,7 +243,7 @@ set_sock_tos(int fd, int tos) debug3_f("set socket %d IP_TOS 0x%02x", fd, tos); if (setsockopt(fd, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)) == -1) { - error("setsockopt socket %d IP_TOS %d: %s:", + error("setsockopt socket %d IP_TOS %d: %s", fd, tos, strerror(errno)); } break; @@ -251,7 +251,7 @@ set_sock_tos(int fd, int tos) debug3_f("set socket %d IPV6_TCLASS 0x%02x", fd, tos); if (setsockopt(fd, IPPROTO_IPV6, IPV6_TCLASS, &tos, sizeof(tos)) == -1) { - error("setsockopt socket %d IPV6_TCLASS %d: %.100s:", + error("setsockopt socket %d IPV6_TCLASS %d: %s", fd, tos, strerror(errno)); } break; -- 2.20.1