git: 931e05ffc215 - stable/13 - kboot: Use #define for DT_DIR
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jan 2023 22:13:54 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=931e05ffc2153449b2b66bd06603cf6f3e62dd1b
commit 931e05ffc2153449b2b66bd06603cf6f3e62dd1b
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-12-04 20:25:54 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:43 +0000
kboot: Use #define for DT_DIR
Sponsored by: Netflix
(cherry picked from commit 0ea00e71a2734caeb166287873b697d917e5a92d)
---
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) {