diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2012-03-02 20:51:29 +0200 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2012-03-02 20:51:29 +0200 |
| commit | d41f510c807ce8b12c572196e2ae8f3817ac253a (patch) | |
| tree | d26e20c85abba72f626ae0555cb39e70545cb5e5 /src/interfaces/ecpg/preproc/descriptor.c | |
| parent | 8efb0bc57eb350bd991fd32c96e38a13bfe7f120 (diff) | |
ecpg: Clean up some const usage
Diffstat (limited to 'src/interfaces/ecpg/preproc/descriptor.c')
| -rw-r--r-- | src/interfaces/ecpg/preproc/descriptor.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/ecpg/preproc/descriptor.c b/src/interfaces/ecpg/preproc/descriptor.c index 52865293f24..115cb17ddc1 100644 --- a/src/interfaces/ecpg/preproc/descriptor.c +++ b/src/interfaces/ecpg/preproc/descriptor.c @@ -317,14 +317,14 @@ struct variable * descriptor_variable(const char *name, int input) { static char descriptor_names[2][MAX_DESCRIPTOR_NAMELEN]; - static const struct ECPGtype descriptor_type = {ECPGt_descriptor, NULL, NULL, NULL, {NULL}, 0}; - static const struct variable varspace[2] = { - {descriptor_names[0], (struct ECPGtype *) & descriptor_type, 0, NULL}, - {descriptor_names[1], (struct ECPGtype *) & descriptor_type, 0, NULL} + static struct ECPGtype descriptor_type = {ECPGt_descriptor, NULL, NULL, NULL, {NULL}, 0}; + static struct variable varspace[2] = { + {descriptor_names[0], &descriptor_type, 0, NULL}, + {descriptor_names[1], &descriptor_type, 0, NULL} }; strlcpy(descriptor_names[input], name, sizeof(descriptor_names[input])); - return (struct variable *) & varspace[input]; + return &varspace[input]; } struct variable * |
