Merge pull request #3103 from matt335672/fix_display_list
Fix session list processing
This commit is contained in:
commit
c98289732e
@ -209,9 +209,12 @@ x_server_running_check_ports(int display)
|
|||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* Helper function for get_sorted_display_list():qsort() */
|
/* Helper function for get_sorted_display_list():qsort() */
|
||||||
static int
|
static int
|
||||||
icmp(const void *i1, const void *i2)
|
icmp(const void *v1, const void *v2)
|
||||||
{
|
{
|
||||||
return *(const unsigned int *)i2 - *(const unsigned int *)i1;
|
// Pointers point to unsigned ints
|
||||||
|
unsigned int i1 = *(unsigned int *)v1;
|
||||||
|
unsigned int i2 = *(unsigned int *)v2;
|
||||||
|
return (i1 < i2) ? -1 : (i1 > i2) ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user