From 02173f2831d25642ec5c702327d4e1f8b050feec Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 25 Jul 2017 15:56:10 -0500 Subject: device tree: silence some warnings Signed-off-by: Burt P --- includes/dt_util.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'includes/dt_util.h') diff --git a/includes/dt_util.h b/includes/dt_util.h index acc4ad16..b4506d19 100644 --- a/includes/dt_util.h +++ b/includes/dt_util.h @@ -40,7 +40,7 @@ typedef uint32_t dt_uint; /* big-endian */ typedef struct _dtr dtr; typedef struct _dtr_obj dtr_obj; -dtr *dtr_new(char *base_path); /* NULL for DTR_ROOT */ +dtr *dtr_new(const char *base_path); /* NULL for DTR_ROOT */ void dtr_free(dtr *); int dtr_was_found(dtr *); const char *dtr_base_path(dtr *); @@ -77,6 +77,9 @@ char *dtr_maps_info(dtr *); /* returns hardinfo shell section */ const char *dtr_find_device_tree_root(void); +/* write to the message log */ +void dtr_msg(dtr *s, char *fmt, ...); + #define sp_sep(STR) (strlen(STR) ? " " : "") /* appends an element to a string, adding a space if * the string is not empty. -- cgit v1.2.3