From b9c4b6b4df1fea4bcadd93c6ab50f2071ffc86df Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Thu, 26 Feb 2009 17:46:54 +0000 Subject: Add a missing parameter to ruserpass(). According to C99 6.9.1p7 K&R function is not a prototype but this is a bad style. GCC accepts this other compilers warn or reject this. Approved by: kib (mentor) --- lib/libcompat/4.3/rexec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libcompat/4.3/rexec.c b/lib/libcompat/4.3/rexec.c index 632ca3e57cf57..4e01eb65904ab 100644 --- a/lib/libcompat/4.3/rexec.c +++ b/lib/libcompat/4.3/rexec.c @@ -302,7 +302,7 @@ rexec(ahost, rport, name, pass, cmd, fd2p) struct hostent *hp; u_short port; int s, timo = 1, s3; - char c; + char c, *acct; hp = gethostbyname(*ahost); if (hp == 0) { @@ -310,7 +310,9 @@ rexec(ahost, rport, name, pass, cmd, fd2p) return (-1); } *ahost = hp->h_name; - ruserpass(hp->h_name, &name, &pass); + acct = NULL; + ruserpass(hp->h_name, &name, &pass, &acct); + free(acct); retry: s = socket(AF_INET, SOCK_STREAM, 0); if (s < 0) { -- cgit v1.3