[PATCH 03/10] die: constify format string arg
Mike Frysinger
vapier at gentoo.org
Thu Apr 11 04:29:08 EST 2013
We only display this string, so there's no need for it to be writable.
Constify away!
Acked-by: David Gibson <David at gibson.dropbear.id.au>
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util.h b/util.h
index 3c20b15..d856eb9 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
More information about the devicetree-discuss
mailing list