diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2009-02-26 17:46:54 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2009-02-26 17:46:54 +0000 |
commit | b029979bbce1b14ee2a80e416c909c077168e0f0 (patch) | |
tree | 62356c947acf080efb05989b7123d4451eea82c1 /lib/libcompat | |
parent | 9d9e2a90b2bd1b0edc87bc133db978d6474fe510 (diff) | |
download | FreeBSD-src-b029979bbce1b14ee2a80e416c909c077168e0f0.zip FreeBSD-src-b029979bbce1b14ee2a80e416c909c077168e0f0.tar.gz |
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)
Diffstat (limited to 'lib/libcompat')
-rw-r--r-- | lib/libcompat/4.3/rexec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libcompat/4.3/rexec.c b/lib/libcompat/4.3/rexec.c index 632ca3e..4e01eb6 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) { |