(struniq_new): Do not declare the return type

to be 'const'; this violates the C standard.
This commit is contained in:
Paul Eggert
2002-11-13 06:27:18 +00:00
parent be14ade55e
commit 0eae1c91c8
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ static struct hash_table *struniqs_table = NULL;
| Create the struniq for S if needed. |
`-------------------------------------*/
const struniq_t
struniq_t
struniq_new (const char *s)
{
struniq_t res = hash_lookup (struniqs_table, s);

View File

@@ -28,7 +28,7 @@
typedef const char *struniq_t;
/* Return the struniq for S. */
const struniq_t struniq_new (const char *s);
struniq_t struniq_new (const char *s);
/* Two struniq have the same value iff they are the same. */
#define STRUNIQ_EQ(S1, S2) ((S1) == (S2))