summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 721000d)
raw | patch | inline | side by side (parent: 721000d)
author | Florian Forster <ff@octo.it> | |
Wed, 7 Jul 2010 14:16:09 +0000 (16:16 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 7 Jul 2010 14:16:09 +0000 (16:16 +0200) |
src/graph.c | patch | blob | history |
diff --git a/src/graph.c b/src/graph.c
index 9d435c2385d3096921abeee8be92be5a9bf95f71..d3a8d6f850495df772b508439da8030dde7f435d 100644 (file)
--- a/src/graph.c
+++ b/src/graph.c
return (ident_compare (cfg->select, ident));
} /* }}} int graph_compare */
+static int graph_sort_instances_cb (const void *v0, const void *v1) /* {{{ */
+{
+ return (ident_compare (*(graph_ident_t * const *) v0,
+ *(graph_ident_t * const *) v1));
+} /* }}} int graph_sort_instances_cb */
+
int graph_sort_instances (graph_config_t *cfg) /* {{{ */
{
if (cfg == NULL)
return (0);
qsort (cfg->instances, cfg->instances_num, sizeof (*cfg->instances),
- (void *) ident_compare);
+ graph_sort_instances_cb);
return (0);
} /* }}} int graph_sort_instances */