We only display this string, so there's no need for it to be writable. Constify away!
Acked-by: David Gibson <da...@gibson.dropbear.id.au> Signed-off-by: Mike Frysinger <vap...@gentoo.org> --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.h b/util.h index 1f0ef47..b9c6d7e 100644 --- a/util.h +++ b/util.h @@ -23,7 +23,7 @@ * USA */ -static inline void __attribute__((noreturn)) die(char * str, ...) +static inline void __attribute__((noreturn)) die(const char *str, ...) { va_list ap; -- 1.8.1.2 _______________________________________________ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss