svn commit: r189077 - head/lib/libcompat/4.3
Roman Divacky
rdivacky at FreeBSD.org
Thu Feb 26 11:39:14 PST 2009
Author: rdivacky
Date: Thu Feb 26 17:46:54 2009
New Revision: 189077
URL: http://svn.freebsd.org/changeset/base/189077
Log:
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)
Modified:
head/lib/libcompat/4.3/rexec.c
Modified: head/lib/libcompat/4.3/rexec.c
==============================================================================
--- head/lib/libcompat/4.3/rexec.c Thu Feb 26 16:32:48 2009 (r189076)
+++ head/lib/libcompat/4.3/rexec.c Thu Feb 26 17:46:54 2009 (r189077)
@@ -302,7 +302,7 @@ rexec(ahost, rport, name, pass, cmd, fd2
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, fd2
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) {
_______________________________________________
svn-src-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
More information about the svn-src-head
mailing list