diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-12-04 20:25:54 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-12-04 20:31:06 +0000 |
commit | 0ea00e71a2734caeb166287873b697d917e5a92d (patch) | |
tree | 1366453c28dbee3a03b2b17a17a71eb0227f7e5c | |
parent | 8483b3add8e706e6e54e8508e268c623f77031d1 (diff) | |
download | src-0ea00e71a2734caeb166287873b697d917e5a92d.tar.gz src-0ea00e71a2734caeb166287873b697d917e5a92d.zip |
kboot: Use #define for DT_DIR
Sponsored by: Netflix
-rw-r--r-- | stand/kboot/kbootfdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |