Browse Source

compiler: fix -Wwrite-strings warning in example.

Rusty Russell 15 years ago
parent
commit
7ce5cb9dbd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ccan/compiler/compiler.h

+ 1 - 1
ccan/compiler/compiler.h

@@ -148,7 +148,7 @@
  *	const char *greek_name(enum greek greek);
  *	const char *greek_name(enum greek greek);
  *
  *
  *	// Inline version.
  *	// Inline version.
- *	static inline char *_greek_name(enum greek greek)
+ *	static inline const char *_greek_name(enum greek greek)
  *	{
  *	{
  *		switch (greek) {
  *		switch (greek) {
  *		case ALPHA: return "alpha";
  *		case ALPHA: return "alpha";