git: 0ea00e71a273 - main - kboot: Use #define for DT_DIR
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Dec 2022 20:36:51 UTC
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) {