From nobody Tue Apr 18 18:31:35 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 4Q1CDm3r5mz45TmQ; Tue, 18 Apr 2023 18:31:36 +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 4Q1CDl4j3Lz41fZ; Tue, 18 Apr 2023 18:31:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681842695; 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=Bqnkr9UI1P4AjCcNXGG5GXE3fyi+4KNraW5xOu72THU=; b=j02SsbxN7jgUvtRwJDZ9+93GLUP9zDP4phdHcyDlhGRAWVLhwLIb9K2Ne+OV7J3AKg327l 8cUeHivEN3Zr7+onx77gbPX1cxGIRyIJ7176qXYRUsm/fDjhfF0rgUz4hEhopqSccZtT9C FSvthGWtaliAxlu+C878qGT4A0tHkdqDKU20koAkQwk3qJ0I2ZmnC/oBD5HkeaCZsoLJIa q5OkVXtk8lAGRP1L1+CUKLfC8+PhVgv30s4pXqkCrWc1gLupvjnxsg0mfyKblp7kxlluVn jSuumWoak99X2E9a6MyCOG1Vdhbb5ehgf9aUYBQZpeNZrE00GeyNxdBDqeyKpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681842696; 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=Bqnkr9UI1P4AjCcNXGG5GXE3fyi+4KNraW5xOu72THU=; b=St3+GWE0wKBIv/bo2ktakCqm1LWTnhbmIPs+nu4GPFh+68MvGC5k7hZrYNMmb6UblLLxF4 qBcvutITzoOeEPv/+W4Sr0RpxbVgoekroxCNdNdZJt5so/NP6VvDCXDHVzf7huNBzSAT+t JGrUw7LOC/hFBYIvFU5LdU/7asi74M++cP4BW7alrN8FSyirJeQ50DGNaXUt4/D3kbUOLu 0lKQ9UNTpJ1cFsBhw7tZOVh6zmAovU5VaGwJ/ngGMEvxS+kLGuXNrZV3C0LvY8ZnERP61y KsOUTyBvY4tDwqFCpc82M8h/g2cK6+hbKKE232Kk5J6t4lhVDo3DoxHHpBc2AA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681842696; a=rsa-sha256; cv=none; b=UmELaik+KWPMSomn7YkPx8/bBF1nbkDpUI4qMlIpnz4Z4edMEoxRSjlCTPGxFMCL0WtDdW y8u4dMWwLQpjoVnzM9Sm2G4NC01YK55FIM8xbq8DzCBIdmip5QbD2LidVVPfkCPFM050GZ nLP7xP5L+d4+ut0dsw4FdWRHudAVL2UAz/G8dotWdaftZwjNUksLIFjW3TQ/BMIR9kMPuD 9TBTrZyUfaoKxnAyMSQIzhVER08gCsxtP4wlX3VvBW3rHmFe6ZlseCsPoPzdPTvFrsSLRE EY/ooC/pgvFZ5fY5aRtm2w4hM05sk3mhx6QjBT65Jd70Oq+Bfe5bxyMISk/sOQ== 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 4Q1CDl1gC3zNQj; Tue, 18 Apr 2023 18:31:35 +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 33IIVZFf028377; Tue, 18 Apr 2023 18:31:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33IIVZBu028376; Tue, 18 Apr 2023 18:31:35 GMT (envelope-from git) Date: Tue, 18 Apr 2023 18:31:35 GMT Message-Id: <202304181831.33IIVZBu028376@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 11af9d24779f - main - telnet: Use C89 function definitions for two stragglers. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 11af9d24779f4000990938ca92cac2424f63ddb6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=11af9d24779f4000990938ca92cac2424f63ddb6 commit 11af9d24779f4000990938ca92cac2424f63ddb6 Author: John Baldwin AuthorDate: 2023-04-18 18:27:47 +0000 Commit: John Baldwin CommitDate: 2023-04-18 18:27:47 +0000 telnet: Use C89 function definitions for two stragglers. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39528 --- contrib/telnet/telnet/commands.c | 3 +-- contrib/telnet/telnet/ring.c | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c index 6414a120ea92..dbc06a10b9c6 100644 --- a/contrib/telnet/telnet/commands.c +++ b/contrib/telnet/telnet/commands.c @@ -423,8 +423,7 @@ send_docmd(char *name) } static int -send_dontcmd(name) - char *name; +send_dontcmd(char *name) { return(send_tncmd(send_dont, "dont", name)); } diff --git a/contrib/telnet/telnet/ring.c b/contrib/telnet/telnet/ring.c index efae2e18c1b7..138e3c661045 100644 --- a/contrib/telnet/telnet/ring.c +++ b/contrib/telnet/telnet/ring.c @@ -306,9 +306,8 @@ ring_encrypt(Ring *ring, void (*encryptor)(unsigned char *, int)) ring->clearto = ring->supply; } - void -ring_clearto(ring) - Ring *ring; +void +ring_clearto(Ring *ring) { if (!ring_empty(ring)) ring->clearto = ring->supply;