From 0eae1c91c8675aaaea36d724a74d9051018b243f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 13 Nov 2002 06:27:18 +0000 Subject: [PATCH] (struniq_new): Do not declare the return type to be 'const'; this violates the C standard. --- src/struniq.c | 2 +- src/struniq.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/struniq.c b/src/struniq.c index e3d32bbb..e593a4d3 100644 --- a/src/struniq.c +++ b/src/struniq.c @@ -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); diff --git a/src/struniq.h b/src/struniq.h index bd33c8c3..adaee5d9 100644 --- a/src/struniq.h +++ b/src/struniq.h @@ -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)) -- 2.45.2