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>
This commit is contained in:
Mike Frysinger 2013-04-10 14:29:08 -04:00 committed by Jon Loeliger
parent cc2c178727
commit 97c122eacc

2
util.h
View file

@ -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;