diff options
-rw-r--r-- | 13.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -226,12 +226,12 @@ main() for (n = packets, i = 1; n != NULL && n->next != NULL; n = n->next->next, ++i) { int j; - if ((j = node_cmp(n, n->next)) < 0) { + if ((j = node_cmp(n->val_list, n->next->val_list)) < 0) { index_sum += i; } #if 1 - node_dump(n); fputc('\n', stderr); - node_dump(n->next); fputc('\n', stderr); + node_dump(n->val_list); fputc('\n', stderr); + node_dump(n->next->val_list); fputc('\n', stderr); fprintf(stderr, "Result: %d (%s)\n", j, j < 0 ? "yes" : "no"); #endif |