From nobody Sun Apr 09 21:35:45 2023 X-Original-To: dev-commits-src-all@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 4PvllQ0w26z44JLN; Sun, 9 Apr 2023 21:35:46 +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 4PvllP4Ybpz4N4Z; Sun, 9 Apr 2023 21:35:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076145; 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=hIC32nRgqHWBZnvWjw/ZmNdRw148TKyU7Kyn+8MLiLQ=; b=Y17VOSoUo/1z69JgjUq9j3nY6UZPWK/VosiP1k8GHkV07TCSLCVO6GhxT4DCIjysOuKqsT K71plfmTW6vmDgRECLv7rGP868E2pCJxCHLutsJQghFz1NGfO0H0p9UXMp3oa++w0nNXmz vQoEBmVxsUVj+VqeHi0BiMiaLX6eKhyEcZtCAd3T50X//Y+PQBdHcjoEQmXmGWmkYQu1ai QULoyxdgy+RR1nBBA13z5qENREgcPj5ocfGHwuhnuJ4KsPCwXpAhREVeOOtazfCEeCacfx 3MO8SxeGwTnuoZIeoBe9Ou1aLy+xxx/KKRrOThg6UO4CSmjTk1duyHqRAoONLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076145; 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=hIC32nRgqHWBZnvWjw/ZmNdRw148TKyU7Kyn+8MLiLQ=; b=WPlsHZq57kuV9vW4bfsZjjUNqdwNjTB4N4VQvVYwVJ9U3D0j5nsqqb9NRgvfv9W/C4t9t3 SU4lKFJSLB11AO0ZVeAl070i5CHAr1KCC83T+r/V1wVOroiuw5copL+kHaJXUGuTn9UOzL n0H2yhephFO0da2Pp/3pc6m4fZlJXBE30y/jXS25O93tHxM0Re2sKC0AuODtkEzZoLM4Dz TG0vLdi0k+V+D9nDoLTO0mCXE29FmHZ954ReJJWV48rNH8XEVsCcXIp1F5yfbTovvZQU3e tthzlv/L5fErna0YrfSCygRXvCCO6zkmkfBGDLsNIwdSePmIrKyIEGX1bGXiCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681076145; a=rsa-sha256; cv=none; b=ug8jXvggL2f3lgj7a56oKCGoQBBp91AQf+69X/S8Ay0DIXtCIpk95xKYJVdrQRush6EbTI 15oHzVBQu03vVR5vqsjlqFZsaOCvUkoqKkWl5XBkTr4HSrf/FeKOOrDGCSEwo0EfQ1lDmn lDyR/0sw3g0OIDPvuFSHqN0xmNx4TlWvkhHt5jIRGkw7liRgziMwS4XBNJlLPZNmQ8H7yl aXrRPqHuWYi16tPGo8M672GitjxZpy4GeIvUZHHghSEo1055iycuAi08lqNt4paUnCGlwu IoE7fWKWnUKe3rH6+G208zMA1Vk6tHt33/COfLFDlfBfCEeE1V1Qes374DPRTQ== 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 4PvllP18NnzPS9; Sun, 9 Apr 2023 21:35:45 +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 339LZjQa082061; Sun, 9 Apr 2023 21:35:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 339LZj7I082060; Sun, 9 Apr 2023 21:35:45 GMT (envelope-from git) Date: Sun, 9 Apr 2023 21:35:45 GMT Message-Id: <202304092135.339LZj7I082060@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 7ec88f5b4b3b - stable/13 - ddb: ansify List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 7ec88f5b4b3bd10016a8b831a189dafb15f759fd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=7ec88f5b4b3bd10016a8b831a189dafb15f759fd commit 7ec88f5b4b3bd10016a8b831a189dafb15f759fd Author: Mateusz Guzik AuthorDate: 2023-02-08 00:09:23 +0000 Commit: Dimitry Andric CommitDate: 2023-04-09 15:46:48 +0000 ddb: ansify Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit fb1b78bfcead2126f9a984ac1c3e6a3a7e505f83) --- 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 41396e0a041f..b4bd667067c6 100644 --- a/sys/ddb/db_input.c +++ b/sys/ddb/db_input.c @@ -72,18 +72,14 @@ static void db_putnchars(int c, int count); static void db_putstring(char *s, int count); 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); @@ -95,9 +91,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; @@ -116,8 +110,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; @@ -314,9 +307,7 @@ cnmaygetc() } int -db_readline(lstart, lsize) - char * lstart; - int lsize; +db_readline(char *lstart, int lsize) { if (lsize < 2)