Skip to content

Commit

Permalink
tables_destroy: call ca_close_ca without argument
Browse files Browse the repository at this point in the history
This matches function call and fixes build with gcc-15

    tables.c: In function 'tables_destroy':
    tables.c:390:13: error: too many arguments to function 'ca[i].op->ca_close_ca'
      390 |             ca[i].op->ca_close_ca(&ca[i]);
          |             ^~
  • Loading branch information
heitbaum authored and Jalle19 committed Dec 10, 2024
1 parent 3d73db0 commit 69d85b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ int tables_destroy() {
int i;
for (i = 0; i < nca; i++) {
if (ca[i].enabled && ca[i].op->ca_close_ca)
ca[i].op->ca_close_ca(&ca[i]);
ca[i].op->ca_close_ca();
}
return 0;
}

0 comments on commit 69d85b8

Please sign in to comment.