mirror of
https://github.com/troglobit/editline.git
synced 2025-09-19 03:18:07 +08:00
Fix qsort() wrapper definition, missing const directives.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user