Skip to content

Commit

Permalink
die: constify format string arg
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vapier authored and Jon Loeliger committed Apr 21, 2013
1 parent cc2c178 commit 97c122e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 97c122e

Please sign in to comment.