From owner-svn-src-head@FreeBSD.ORG Thu Feb 26 19:39:13 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D42A106566B; Thu, 26 Feb 2009 19:39:13 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Received: from forwards3.yandex.ru (forwards3.yandex.ru [213.180.223.174]) by mx1.freebsd.org (Postfix) with ESMTP id 232538FC13; Thu, 26 Feb 2009 19:39:13 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Received: from mxfront70.yandex.ru (mxfront70.yandex.ru [213.180.223.10]) by forwards3.yandex.ru (Yandex) with ESMTP id B89761B3439; Thu, 26 Feb 2009 22:36:07 +0300 (MSK) Received: from mx2.freebsd.org ([69.147.83.53]:40399 "EHLO mx2.freebsd.org" smtp-auth: TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S313146AbZBZRrO for (+ 2 others); Thu, 26 Feb 2009 20:47:14 +0300 X-Yandex-TimeMark: 1235670434 X-Yandex-Spam: 2 X-Yandex-Front: mxfront70 Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 502DA15F7E1; Thu, 26 Feb 2009 17:47:09 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id CA4731065713; Thu, 26 Feb 2009 17:47:07 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 044C810656C2; Thu, 26 Feb 2009 17:46:55 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E64AD8FC1A; Thu, 26 Feb 2009 17:46:54 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1QHks6s033935; Thu, 26 Feb 2009 17:46:54 GMT (envelope-from rdivacky@svn.freebsd.org) Received: (from rdivacky@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1QHksAl033934; Thu, 26 Feb 2009 17:46:54 GMT (envelope-from rdivacky@svn.freebsd.org) Message-Id: <200902261746.n1QHksAl033934@svn.freebsd.org> From: Roman Divacky Date: Thu, 26 Feb 2009 17:46:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-svn-src-all@freebsd.org Errors-To: owner-svn-src-all@freebsd.org Cc: Subject: svn commit: r189077 - head/lib/libcompat/4.3 X-BeenThere: svn-src-head@freebsd.org List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 19:39:14 -0000 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"