[PATCH 3/8] die: constify format string arg
David Gibson
david at gibson.dropbear.id.au
Mon Apr 8 19:43:21 EST 2013
On Mon, Apr 08, 2013 at 03:06:47AM -0400, Mike Frysinger wrote:
> We only display this string, so there's no need for it to be writable.
> Constify away!
>
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
Acked-by: David Gibson <david at gibson.dropbear.id.au>
> ---
> 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;
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20130408/efa7b359/attachment.sig>
More information about the devicetree-discuss
mailing list