Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Dec 2022 20:36:51 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0ea00e71a273 - main - kboot: Use #define for DT_DIR
Message-ID:  <202212042036.2B4KapFa034087@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=0ea00e71a2734caeb166287873b697d917e5a92d

commit 0ea00e71a2734caeb166287873b697d917e5a92d
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-12-04 20:25:54 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-12-04 20:31:06 +0000

    kboot: Use #define for DT_DIR
    
    Sponsored by:           Netflix
---
 stand/kboot/kbootfdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/kboot/kbootfdt.c b/stand/kboot/kbootfdt.c
index df9506af6773..aafa436daf9f 100644
--- a/stand/kboot/kbootfdt.c
+++ b/stand/kboot/kbootfdt.c
@@ -58,7 +58,7 @@ add_node_to_fdt(void *buffer, const char *path, int fdt_offset)
 			    strcmp(dent->d_name, "..") == 0)
 				continue;
 			d_type = dent->d_type;
-			if (d_type == 4 /* DT_DIR */) {
+			if (d_type == HOST_DT_DIR) {
 				child_offset = fdt_add_subnode(buffer, fdt_offset,
 				    dent->d_name);
 				if (child_offset < 0) {



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