From acc26f85f32c68a51e5cc7b613cd0ea0b0630505 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 7 Jan 2022 20:50:16 +0200 Subject: Use #if defined(...) when not guard clause --- include/libfdt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/libfdt.h') diff --git a/include/libfdt.h b/include/libfdt.h index 304abb7..602cdcb 100644 --- a/include/libfdt.h +++ b/include/libfdt.h @@ -9,11 +9,11 @@ struct cell_info { uint32_t addr_cells; }; -struct cell_info get_cellinfo(void *fdt, int offset); -struct cell_info get_reginfo(void *fdt, const char *path); +struct cell_info get_cellinfo(const void *fdt, const int offset); +struct cell_info get_reginfo(const void *fdt, const char *path); #if defined(DEBUG) -void __dbg_fdt(void *fdt, int node_offset, int depth); +void __dbg_fdt(const void *fdt, int node_offset, int depth); #define dbg_fdt(fdt) __dbg_fdt(fdt, 0, 0) #else #define dbg_fdt(...) -- cgit v1.3