From nobody Wed Feb 08 00:09:39 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PBL382JFlz3p86V; Wed, 8 Feb 2023 00:09:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PBL381g0gz3wdT; Wed, 8 Feb 2023 00:09:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675814980; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NpoyrubeN7tToYuBMDLPRzaqrzAD6/e16N8K7xoAstA=; b=hNHx/rGLhFN821uyt6lJuOsCE12qvkyOEyN+gzFvCJPTrFnOs94dz1ZPnq2NMAW2wz77QR f62P4VMEzJWEPsCBzAkOmnFgtZDJLtMxADYXpfk2ofN+U/A6qc3bPEzeMKafmFadsal9fM MHeywODLoFhhStvxu+smauGnDjyXXpZ0m8AQNsgn08bDZ6jWVoaas3jEruKc+g/isbfu8v h8/4Rstzr/I7Dlzu3rdKImIGFI3w4XlLh05fJCI07vH3JFa55v+0TWQdDdil/tJofXe83Y l0nOuG3hoeCG2bg1ZmMnHr7sxQmz83PMrEaRWNIg0AJizqPqHx5wsUQTCEKwKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675814980; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NpoyrubeN7tToYuBMDLPRzaqrzAD6/e16N8K7xoAstA=; b=OafmiA4E7cVAuxro5nksAX/fNfAgb/SQO7B/tU3UQNPb/KxXpZsgEmZK58WBNbBaDbZuTd uCEGvTbj5zNCNVODd8Ig0h8CunSiORBkadjvghhDyLjs0PZZOw7sdG2SSZEbS8jIhBovwo pCaSn/yG88BZcOw/Uu1Lc7LZxw7B/+rdgOcSty5cj4Slpa1ozxFSn5k3cdsXL01GkVCrpC b8xNqBtFjQzQmcYPK7k6FQc9EGcJT+EUZL+7/CwwOqaocotjKlcNeXjKl1lMZy0jhHJPgB RXITYa7aEeEP/P+zElNVx6CyS6MPmDMln3QcNSBra6WHYK8ax4mIXViYJNKQrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675814980; a=rsa-sha256; cv=none; b=PxSJwnvmgG7ybwaMdzWLv2vsTQgyecGl5zB+WKRVUkp5N23mF1g///9ZVUAOLZ+E84qQ2g wmlcD7W8/iJXFdZ5NIRvhrZmWBJx1pTGPchi6IZd1btDvPKhk8INZDizDzN0rjeYjA0ceF t+3Nm7egqWzDyPClQNEGd5gKv6xOYIV05pnshYAjckRiZ8jCh0G+4INKwHE+M9C+FMXxni b6JzvrkPWeXGW41vC9KTJeazBkmpWzTQ3QjmqYwygQQD7/55AweOFAVdP9NjlGSOnhZAWT womcn9NRvS0+QAw8ets7OxEzih9JD3LAmESBE23sUMUka68jR3Fccopxe/vS8w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PBL380SHrzc88; Wed, 8 Feb 2023 00:09:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31809dMV068105; Wed, 8 Feb 2023 00:09:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31809dFr068104; Wed, 8 Feb 2023 00:09:39 GMT (envelope-from git) Date: Wed, 8 Feb 2023 00:09:39 GMT Message-Id: <202302080009.31809dFr068104@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: fb1b78bfcead - main - ddb: ansify List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fb1b78bfcead2126f9a984ac1c3e6a3a7e505f83 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=fb1b78bfcead2126f9a984ac1c3e6a3a7e505f83 commit fb1b78bfcead2126f9a984ac1c3e6a3a7e505f83 Author: Mateusz Guzik AuthorDate: 2023-02-08 00:09:23 +0000 Commit: Mateusz Guzik CommitDate: 2023-02-08 00:09:23 +0000 ddb: ansify Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/ddb/db_input.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c index a7d06e17f5c1..c5ee6c664a96 100644 --- a/sys/ddb/db_input.c +++ b/sys/ddb/db_input.c @@ -88,18 +88,14 @@ static void db_raw_push(int); static int db_raw_space(void); static void -db_putstring(s, count) - char *s; - int count; +db_putstring(char *s, int count) { while (--count >= 0) cnputc(*s++); } static void -db_putnchars(c, count) - int c; - int count; +db_putnchars(int c, int count) { while (--count >= 0) cnputc(c); @@ -111,9 +107,7 @@ db_putnchars(c, count) #define DEL_FWD 0 #define DEL_BWD 1 static void -db_delete(n, bwd) - int n; - int bwd; +db_delete(int n, int bwd) { char *p; @@ -132,8 +126,7 @@ db_delete(n, bwd) /* returns true at end-of-line */ static int -db_inputchar(c) - int c; +db_inputchar(int c) { static int escstate; @@ -370,9 +363,7 @@ db_raw_pop(void) } int -db_readline(lstart, lsize) - char * lstart; - int lsize; +db_readline(char *lstart, int lsize) { if (lsize < 2)