Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 2024 19:34:16 GMT
From:      Piotr Pawel Stefaniak <pstef@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 12bae251fbfa - main - libcompat: silence -Wdeprecated-non-prototype
Message-ID:  <202402061934.416JYGQ7084571@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pstef:

URL: https://cgit.FreeBSD.org/src/commit/?id=12bae251fbfa33f375d134e0840d88c4363b8b94

commit 12bae251fbfa33f375d134e0840d88c4363b8b94
Author:     Piotr Paweł Stefaniak <pstef@FreeBSD.org>
AuthorDate: 2024-02-03 18:12:42 +0000
Commit:     Piotr Paweł Stefaniak <pstef@FreeBSD.org>
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 <unistd.h>
 
 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402061934.416JYGQ7084571>