From owner-freebsd-bugs Wed Jan 5 9:40: 4 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 85EB01508B for ; Wed, 5 Jan 2000 09:40:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA13901; Wed, 5 Jan 2000 09:40:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Wed, 5 Jan 2000 09:40:02 -0800 (PST) Message-Id: <200001051740.JAA13901@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Garrett Wollman Subject: bin/15906: rcmd(3) prototype disagrees with definition Reply-To: Garrett Wollman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/15906; it has been noted by GNATS. From: Garrett Wollman To: naddy@mips.rhein-neckar.de Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/15906: rcmd(3) prototype disagrees with definition Date: Wed, 5 Jan 2000 12:30:19 -0500 (EST) < said: >> Synopsis: rcmd(3) prototype disagrees with definition No, it does not. > int rcmd __P((char **, int, const char *, > const char *, const char *, int *)); This is the correct prototype for a declaration of the form: > int > rcmd(ahost, rport, locuser, remuser, cmd, fd2p) > char **ahost; > u_short rport; > const char *locuser, *remuser, *cmd; > int *fd2p; > Which instances should be fixed? Neither. Please read a text on Standard C, such as K&R or H&S. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message