summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-04-10 14:29:08 -0400
committerJon Loeliger <jdl@jdl.com>2013-04-21 14:23:52 -0500
commit97c122eacc8636b26992cf6e080775f7c28660f9 (patch)
tree43883caf7c22f860c713e64572a87c75987e1f19
parentcc2c178727cdeca4eb9756637c2e09e50e0856e7 (diff)
downloaddtc-97c122eacc8636b26992cf6e080775f7c28660f9.tar.gz
die: constify format string arg
We only display this string, so there's no need for it to be writable. Constify away! Acked-by: David Gibson <David@gibson.dropbear.id.au> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--util.h2
1 files changed, 1 insertions, 1 deletions
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;