mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
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:
@@ -296,8 +296,8 @@ collectTSQueryValues(TSQuery a, int *nvalues_p)
|
||||
static int
|
||||
cmp_string(const void *a, const void *b)
|
||||
{
|
||||
const char *sa = *((const char **) a);
|
||||
const char *sb = *((const char **) b);
|
||||
const char *sa = *((char *const *) a);
|
||||
const char *sb = *((char *const *) b);
|
||||
|
||||
return strcmp(sa, sb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user