From nobody Tue Feb 06 19:34:16 2024 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 4TTtjN2sHKz59qCq; Tue, 6 Feb 2024 19:34:16 +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 4TTtjN2M5rz4Hv6; Tue, 6 Feb 2024 19:34:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707248056; 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=2UHBZnxUpObPz6i5nNW4nEDKT7Og42n/bJPjFVfX8zo=; b=AYJ1cDvLLLSuPrDp7IKqP8uE7oeQtq9fYphtPBqBFbqokl9WJd6AjL3cWap4z3wGiNCTct 8saB8yzgzRbRDSldPxoTwAC1t1wKMKK0/A95/q7cknt0rr3wM0G/hbwUj6lVA0PvR6R/jD DlCkdnQ09GEkK6gJeGQJ1+/gm10UuqGc3jvtoqQNkasQqTG/kxeTycMgVMCTmoS6i2Z2oV RcOJ3z/AsaxwtJuLHlGcnYMq6mlbJqgY0MgCjAVqdQRkBymJtAtbFgcYNm96cT7Zdzsk/O Ni0/ELswkgf19ZCiDJMQ7B6Y3ytvWKIMzzec4dOEWdbe4SmLcKkvXVtdDWInXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707248056; 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=2UHBZnxUpObPz6i5nNW4nEDKT7Og42n/bJPjFVfX8zo=; b=j80/P0tLZTGfobL2hqFCc9vUuozaA/Kb2rnNR/TrE7vsdAwyrFkU1WkddX5XYocsxm2Trs /6K/l0gaf1RdVSvQLm1CjPcHy08pLt9qKATGB4sLe/DcuS3Zux6MF+604v8JklnL4lDq/i pxiGuLim72m6hzB9QHQC2+BPV8lHXG2yjgL1cxqXHFhvN5YCHLukg1dL9lHTk1yIVxhR87 Gtb10e0ACWFDEDfUzRSz5J/+KZvqIGanHJQyZ1v1OoDjsrKtlSETiXD/6nHjW/frT4sHn7 /3PzOJNEkfHqHbw4f4BgsmsbXbiyfGWgr5ErWiUbNRo9lUMyt7jPnfQmadLheA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707248056; a=rsa-sha256; cv=none; b=Aa5t7uw/Z71DgHhs2jMgL2eDxB6+fk8qcfU5mcR8UMlwutXa22cQLUNNDOzOzmGAAx9x/P ACTktv/yexcIdDDc4k3ILJ2yt9waTXkj2xcsu2AeEV2aW5ULPtmn3skqX8CdsXSy4CPJJS txx/2IRlrEJiA16jYKiaghDwA/+FMx9jdOWvzH2E8WCGCN1p/y6V23Q5VoqAfwWd2378Mt AFpKMQTfT8NH1AbGVi9wDkHmNRNwWAruJ1pci+q/ozyoP1FRh5qRn9NKrIozDqE59X+OFt l+3n24708sarQCLeuCcleoWv56O2nzC1CsF7GsUsoQCAHPtlk1tHZXh7mvwrqQ== 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 4TTtjN1RsQzcHV; Tue, 6 Feb 2024 19:34:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 416JYGHN084574; Tue, 6 Feb 2024 19:34:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 416JYGQ7084571; Tue, 6 Feb 2024 19:34:16 GMT (envelope-from git) Date: Tue, 6 Feb 2024 19:34:16 GMT Message-Id: <202402061934.416JYGQ7084571@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Piotr Pawel Stefaniak Subject: git: 12bae251fbfa - main - libcompat: silence -Wdeprecated-non-prototype 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: pstef X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 12bae251fbfa33f375d134e0840d88c4363b8b94 Auto-Submitted: auto-generated The branch main has been updated by pstef: URL: https://cgit.FreeBSD.org/src/commit/?id=12bae251fbfa33f375d134e0840d88c4363b8b94 commit 12bae251fbfa33f375d134e0840d88c4363b8b94 Author: Piotr Paweł Stefaniak AuthorDate: 2024-02-03 18:12:42 +0000 Commit: Piotr Paweł Stefaniak CommitDate: 2024-02-06 19:32:46 +0000 libcompat: silence -Wdeprecated-non-prototype by removing unnecessary re-declarations and converting K&R-style function definitions. Differential Revision: https://reviews.freebsd.org/D43723 Reviewed by: imp, emaste --- lib/libcompat/4.3/rexec.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/libcompat/4.3/rexec.c b/lib/libcompat/4.3/rexec.c index b6ed92e2a313..b2f37a09c0fb 100644 --- a/lib/libcompat/4.3/rexec.c +++ b/lib/libcompat/4.3/rexec.c @@ -49,7 +49,6 @@ #include int rexecoptions; -char *getpass(), *getlogin(); /* * Options and other state info. @@ -130,8 +129,7 @@ token() } static int -ruserpass(host, aname, apass, aacct) - char *host, **aname, **apass, **aacct; +ruserpass(char *host, char **aname, char **apass, char **aacct) { char *hdir, buf[BUFSIZ], *tmp; char myname[MAXHOSTNAMELEN], *mydomain; @@ -289,11 +287,7 @@ bad: } int -rexec(ahost, rport, name, pass, cmd, fd2p) - char **ahost; - int rport; - char *name, *pass, *cmd; - int *fd2p; +rexec(char **ahost, int rport, char *name, char *pass, char *cmd, int *fd2p) { struct sockaddr_in sin, sin2, from; struct hostent *hp;