static int _sort_stats_by_name(job_step_stat_t *rec_a, job_step_stat_t *rec_b) { if(!rec_a->step_pids || !rec_b->step_pids) return 0; return _sort_pids_by_name(rec_a->step_pids, rec_b->step_pids); }
static int _sort_stats_by_name(void *x, void *y) { job_step_stat_t *rec_a = *(job_step_stat_t **)x; job_step_stat_t *rec_b = *(job_step_stat_t **)y; if (!rec_a->step_pids || !rec_b->step_pids) return 0; return _sort_pids_by_name((void *)&rec_a->step_pids, (void *)&rec_b->step_pids); }