Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Apr 2026 16:15:43 +0000
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 47b0ac1cadc9 - main - OF_getprop.9: update OF_hasprop() signature
Message-ID:  <69e10b2f.25362.4e5f98b8@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=47b0ac1cadc91eee5e98813169b590c443135fbc

commit 47b0ac1cadc91eee5e98813169b590c443135fbc
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2026-04-16 15:57:48 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-04-16 16:15:40 +0000

    OF_getprop.9: update OF_hasprop() signature
    
    The return type has been converted to a bool.
    
    Reported by:    manu
    Sponsored by:   The FreeBSD Foundation
    Fixes:          b60cd486a652 ("ofw: bool-ify OF_hasprop()")
---
 share/man/man9/OF_getprop.9 | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/share/man/man9/OF_getprop.9 b/share/man/man9/OF_getprop.9
index 3bb0068e3dc2..8c93d92bf73b 100644
--- a/share/man/man9/OF_getprop.9
+++ b/share/man/man9/OF_getprop.9
@@ -23,7 +23,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 23, 2018
+.Dd April 16, 2026
 .Dt OF_GETPROP 9
 .Os
 .Sh NAME
@@ -52,7 +52,7 @@
 .Ft ssize_t
 .Fn OF_getencprop "phandle_t node" "const char *prop" \
 "pcell_t *buf" "size_t len"
-.Ft int
+.Ft bool
 .Fn OF_hasprop "phandle_t node" "const char *propname"
 .Ft ssize_t
 .Fn OF_searchprop "phandle_t node" "const char *propname" \
@@ -138,11 +138,15 @@ if the property does not exist.
 must be a multiple of 4.
 .Pp
 .Fn OF_hasprop
-returns 1 if the device node
+returns
+.Dv true
+if the device node
 .Fa node
 has a property specified by
 .Fa propname ,
-and zero if the property does not exist.
+and
+.Dv false
+if the property does not exist.
 .Pp
 .Fn OF_searchprop
 recursively looks for the property specified by


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e10b2f.25362.4e5f98b8>