docs/90498: wrong parameter name to function twalk in tseatch.3

Vasil Dimov vd at datamax.bg
Fri Dec 16 14:10:14 UTC 2005


>Number:         90498
>Category:       docs
>Synopsis:       wrong parameter name to function twalk in tseatch.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 16 14:10:05 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Vasil Dimov
>Release:        FreeBSD 6.0-STABLE amd64
>Organization:
DataMax
>Environment:

>Description:

In tsearch(3) the function passed as argument to twalk should be named
`action', to `compar'.

>How-To-Repeat:

>Fix:

--- tsearch.3_action.diff begins here ---
--- lib/libc/stdlib/tsearch.3.orig	Fri Dec 16 16:01:11 2005
+++ lib/libc/stdlib/tsearch.3	Fri Dec 16 16:01:30 2005
@@ -42,7 +42,7 @@
 .Ft void *
 .Fn tsearch "const void *key" "void **rootp" "int (*compar) (const void *, const void *)"
 .Ft void
-.Fn twalk "const void *root" "void (*compar) (const void *, VISIT, int)"
+.Fn twalk "const void *root" "void (*action) (const void *, VISIT, int)"
 .Sh DESCRIPTION
 The
 .Fn tdelete ,
--- tsearch.3_action.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list