Fix misplaced const

These instances were apparently trying to carry the const qualifier
from the arguments through the complex casts, but for that the const
qualifier was misplaced.
This commit is contained in:
Peter Eisentraut 2019-03-26 09:23:08 +01:00
parent 2ac1b2b175
commit c8c885b7a5
2 changed files with 4 additions and 4 deletions

View File

@ -1684,8 +1684,8 @@ qsort_partition_hbound_cmp(const void *a, const void *b)
static int32 static int32
qsort_partition_list_value_cmp(const void *a, const void *b, void *arg) qsort_partition_list_value_cmp(const void *a, const void *b, void *arg)
{ {
Datum val1 = (*(const PartitionListValue **) a)->value, Datum val1 = (*(PartitionListValue *const *) a)->value,
val2 = (*(const PartitionListValue **) b)->value; val2 = (*(PartitionListValue *const *) b)->value;
PartitionKey key = (PartitionKey) arg; PartitionKey key = (PartitionKey) arg;
return DatumGetInt32(FunctionCall2Coll(&key->partsupfunc[0], return DatumGetInt32(FunctionCall2Coll(&key->partsupfunc[0],

View File

@ -296,8 +296,8 @@ collectTSQueryValues(TSQuery a, int *nvalues_p)
static int static int
cmp_string(const void *a, const void *b) cmp_string(const void *a, const void *b)
{ {
const char *sa = *((const char **) a); const char *sa = *((char *const *) a);
const char *sb = *((const char **) b); const char *sb = *((char *const *) b);
return strcmp(sa, sb); return strcmp(sa, sb);
} }