mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
Fix qsort() wrapper definition, missing const directives.
This commit is contained in:
parent
3c4cf96bfc
commit
da4bd00eef
@ -37,7 +37,7 @@ char *strdup(const char *p)
|
||||
#endif
|
||||
|
||||
/* Wrap strcmp() for qsort() */
|
||||
static int compare(void *p1, void *p2)
|
||||
static int compare(const void *p1, const void *p2)
|
||||
{
|
||||
char **v1 = (char **)p1;
|
||||
char **v2 = (char **)p2;
|
||||
|
Loading…
Reference in New Issue
Block a user