From: Rusty Russell Date: Tue, 22 Mar 2011 02:12:43 +0000 (+1030) Subject: compiler: fix -Wwrite-strings warning in example. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=7ce5cb9dbdff5aef2a0218539adc6e2e49c659cb compiler: fix -Wwrite-strings warning in example. --- diff --git a/ccan/compiler/compiler.h b/ccan/compiler/compiler.h index 1e0d8efb..aa7323f5 100644 --- a/ccan/compiler/compiler.h +++ b/ccan/compiler/compiler.h @@ -148,7 +148,7 @@ * const char *greek_name(enum greek greek); * * // Inline version. - * static inline char *_greek_name(enum greek greek) + * static inline const char *_greek_name(enum greek greek) * { * switch (greek) { * case ALPHA: return "alpha";