diff options
-rw-r--r-- | include/datatype.h | 2 | ||||
-rw-r--r-- | src/datatype.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/datatype.h b/include/datatype.h index 4e838a38..09a78945 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -174,7 +174,7 @@ struct datatype { extern const struct datatype *datatype_lookup(enum datatypes type); extern const struct datatype *datatype_lookup_byname(const char *name); -extern struct datatype *datatype_get(const struct datatype *dtype); +extern const struct datatype *datatype_get(const struct datatype *dtype); extern void datatype_set(struct expr *expr, const struct datatype *dtype); extern void __datatype_set(struct expr *expr, const struct datatype *dtype); extern void datatype_free(const struct datatype *dtype); diff --git a/src/datatype.c b/src/datatype.c index 8d65ab8b..f5d700bd 100644 --- a/src/datatype.c +++ b/src/datatype.c @@ -1211,7 +1211,7 @@ static struct datatype *datatype_alloc(void) return dtype; } -struct datatype *datatype_get(const struct datatype *ptr) +const struct datatype *datatype_get(const struct datatype *ptr) { struct datatype *dtype = (struct datatype *)ptr; |