aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Pawel Stefaniak <pstef@FreeBSD.org>2024-02-03 18:12:42 +0000
committerPiotr Pawel Stefaniak <pstef@FreeBSD.org>2024-02-08 17:40:06 +0000
commit43b7fec10b6ba51cb5ac6265ef12b043f88a09a6 (patch)
treebe0c57b9f5318f467cc038d181e678c1f1cf933a
parent6efcd634c6f9fdf3976f9fa2ce16c5584c3e3c2c (diff)
downloadsrc-43b7fec10b6ba51cb5ac6265ef12b043f88a09a6.tar.gz
src-43b7fec10b6ba51cb5ac6265ef12b043f88a09a6.zip
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 (cherry picked from commit 12bae251fbfa33f375d134e0840d88c4363b8b94)
-rw-r--r--lib/libcompat/4.3/rexec.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libcompat/4.3/rexec.c b/lib/libcompat/4.3/rexec.c
index 3dac5ff18da3..bcd93a2c7cde 100644
--- a/lib/libcompat/4.3/rexec.c
+++ b/lib/libcompat/4.3/rexec.c
@@ -51,7 +51,6 @@ __SCCSID("@(#)rexec.c 8.1 (Berkeley) 6/4/93");
#include <unistd.h>
int rexecoptions;
-char *getpass(), *getlogin();
/*
* Options and other state info.
@@ -132,8 +131,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;
@@ -291,11 +289,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;