Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2009 17:46:54 +0000 (UTC)
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189077 - head/lib/libcompat/4.3
Message-ID:  <200902261746.n1QHksAl033934@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"



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