src/modesel.c
/* terminate_list:
 *  Helper function for terminating a mode list.
 */
Helper function for terminating a mode list.
Helper function for terminating a mode list .
static int terminate_list(MODE_LIST **list, int size)
{
   *list = _al_sane_realloc(*list, sizeof(MODE_LIST) * (size + 1));
   if (!list)
      return -1;
   (*list)[size].w = 0;
   (*list)[size].h = 0;
   return 0;
}
static int terminate_list ( MODE_LIST * * list , int size ) { * list = _al_sane_realloc ( * list , sizeof ( MODE_LIST ) * ( size + 1 ) ) ; if ( ! list ) return -1 ; ( * list ) [ size ] . w = 0 ; ( * list ) [ size ] . h = 0 ; return 0 ; }
terminate_list:
  Helper function for terminating a mode list.
terminate_list : Helper function for terminating a mode list .
/* Add terminating marker. */