NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/42413: Wrong signature for prop_dictionary_ensure_capacity() in man page

>Number:         42413
>Category:       lib
>Synopsis:       Wrong signature for prop_dictionary_ensure_capacity() in man 
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 05 02:30:00 +0000 2009
>Originator:     Silas Silva
>Release:        current
prop_dictionary(3) informs two different signatures for the 
prop_dictionary_ensure_capacity() function. One in the SYNOPSIS section (the 
correct one, I think) and a different signature in the DESCRIPTION section (it 
lacks the "capacity" parameter).
man prop_dictionary
Apply this patch in src/common/lib/libprop:

--- prop_dictionary.3.orig      2009-12-05 00:05:18.000000000 -0200
+++ prop_dictionary.3   2009-12-05 00:13:54.000000000 -0200
@@ -165,7 +165,8 @@
 except the resulting dictionary is always mutable.
 .It Fn prop_dictionary_count "prop_dictionary_t dict"
 Returns the number of objects stored in the dictionary.
-.It Fn prop_dictionary_ensure_capacity "prop_dictionary_t dict"
+.It Fn prop_dictionary_ensure_capacity "prop_dictionary_t dict" \
+    "unsigned int capacity"
 Ensure that the dictionary has a total capacity of
 .Fa capacity ,
 including objects already stored in the dictionary.

Home | Main Index | Thread Index | Old Index