X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/1d99ee650820bfaf0ac45cada8853c807f27bf52..e0cd8f9c44808642b2f4ebb17202e1ec477db78a:/lunaix-os/includes/hal/devtree.h?ds=sidebyside diff --git a/lunaix-os/includes/hal/devtree.h b/lunaix-os/includes/hal/devtree.h index ae18e31..111617e 100644 --- a/lunaix-os/includes/hal/devtree.h +++ b/lunaix-os/includes/hal/devtree.h @@ -47,14 +47,14 @@ struct dtp_val { union { - union { - const char* str_val; - const char* str_lst; - }; ptr_t ptr_val; dt_enc_t encoded; union dtp_baseval* ref; + union { + const char* str_val; + const char* str_lst; + }; }; unsigned int size; }; @@ -670,7 +670,7 @@ static inline void dtpi_init_empty(struct dtpropi* dtpi) { *dtpi = (struct dtpropi) { - .prop = { 0, 0 }, + .prop = { {0}, 0 }, .loc = 0 }; }