Skip site navigation (1)Skip section navigation (2)
Date:      02 Aug 2001 10:10:59 +0200
From:      Assar Westerlund <assar@FreeBSD.org>
To:        Trevor Johnson <trevor@jpj.net>
Cc:        "David E. O'Brien" <obrien@FreeBSD.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/bin/chmod chmod.c
Message-ID:  <5lofpykhkc.fsf@assaris.sics.se>
In-Reply-To: Trevor Johnson's message of "Thu, 2 Aug 2001 00:27:02 -0400 (EDT)"
References:  <20010802002512.N17123-100000@blues.jpj.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Trevor Johnson <trevor@jpj.net> writes:
> > obrien      2001/07/31 18:21:09 PDT
> >
> >   Modified files:        (Branch: RELENG_4)
> >     bin/chmod            chmod.c
> >   Log:
> >   MFC: rev 1.19 (quiet warnings)
> >
> >   Revision  Changes    Path
> >   1.16.2.3  +2 -1      src/bin/chmod/chmod.c
> 
> I'm having some trouble on i386, compiling under 4.2-RELEASE:
> /usr/obj/usr/src/i386/usr/include/fts.h:48: warning: function declaration isn't a prototype

Try applying this patch.

/assar

Index: fts.h
===================================================================
RCS file: /home/ncvs/src/include/fts.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -u -w -r1.3 -r1.4
--- fts.h	1997/05/07 19:59:58	1.3
+++ fts.h	2001/06/13 14:59:57	1.4
@@ -31,6 +31,7 @@
  * SUCH DAMAGE.
  *
  *	@(#)fts.h	8.3 (Berkeley) 8/14/94
+ * $FreeBSD: src/include/fts.h,v 1.4 2001/06/13 14:59:57 ru Exp $
  */
 
 #ifndef	_FTS_H_
@@ -45,7 +46,8 @@
 	int fts_rfd;			/* fd for root */
 	int fts_pathlen;		/* sizeof(path) */
 	int fts_nitems;			/* elements in the sort array */
-	int (*fts_compar)();		/* compare function */
+	int (*fts_compar)		/* compare function */
+	    __P((const struct _ftsent **, const struct _ftsent **));
 
 #define	FTS_COMFOLLOW	0x001		/* follow command line symlinks */
 #define	FTS_LOGICAL	0x002		/* logical walk */

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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