Skip to content

Commit

Permalink
Merge pull request #3103 from matt335672/fix_display_list
Browse files Browse the repository at this point in the history
Fix session list processing
  • Loading branch information
matt335672 committed Jun 3, 2024
2 parents 5c4278c + 70f1b68 commit c982897
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sesman/session_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,12 @@ x_server_running_check_ports(int display)
/******************************************************************************/
/* Helper function for get_sorted_display_list():qsort() */
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;
}

/******************************************************************************/
Expand Down

0 comments on commit c982897

Please sign in to comment.