Subject: lib/3364: typo in fts(3); fts_set takes a pointer to FTS as first argument
To: None <gnats-bugs@gnats.netbsd.org>
From: None <enami@ba2.so-net.or.jp>
List: netbsd-bugs
Date: 03/20/1997 13:05:50
>Number:         3364
>Category:       lib
>Synopsis:       typo in fts(3); fts_set takes a pointer to FTS as first argument
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 19 20:35:01 1997
>Last-Modified:
>Originator:     enami tsugutomo
>Organization:
	an individual
>Release:        NetBSD-current 1997 Mar. 18
>Environment:
System: NetBSD pavlov.enami.ba2.so-net.or.jp 1.2D NetBSD 1.2D (PAVLOV) #197: Tue Mar 18 12:39:20 JST 1997 enami@pavlov.enami.ba2.so-net.or.jp:/b/netbsd/kernel/compile/PAVLOV i386


>Description:
	Fts(3) has a typo; it says that fts_set takes a FTS itself as its
	first argument, but actually it takes a pointer to FTS.
>How-To-Repeat:
	Type `man fts' and read it.  It may contains line like this:

     int
     fts_set(FTS ftsp, FTSENT *f, int options)

	But actual definition in lib/libc/gen/fts.c is:

int
fts_set(sp, p, instr)
	FTS *sp;
	FTSENT *p;
	int instr;
{

>Fix:
	Here is my fix.

Index: fts.3
===================================================================
RCS file: /a/cvsroot/NetBSD/src/lib/libc/gen/fts.3,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 fts.3
--- fts.3	1996/11/16 10:04:49	1.1.1.1
+++ fts.3	1997/03/20 03:03:22
@@ -50,7 +50,7 @@
 .Ft FTSENT *
 .Fn fts_children "FTS *ftsp" "int options"
 .Ft int
-.Fn fts_set "FTS ftsp" "FTSENT *f" "int options"
+.Fn fts_set "FTS *ftsp" "FTSENT *f" "int options"
 .Ft int
 .Fn fts_close "FTS *ftsp"
 .Sh DESCRIPTION
>Audit-Trail:
>Unformatted: