summaryrefslogtreecommitdiff
path: root/13.c
diff options
context:
space:
mode:
Diffstat (limited to '13.c')
-rw-r--r--13.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/13.c b/13.c
index 5bee612..9d876b6 100644
--- a/13.c
+++ b/13.c
@@ -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