Skip to content

Commit

Permalink
Merge pull request #675 from tomc797/fix/correct_signature
Browse files Browse the repository at this point in the history
Correct tun_commit_routes to return int
  • Loading branch information
scareything committed Jun 14, 2023
2 parents ecc87f8 + 20bc97c commit 7dc0798
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion programs/ziti-edge-tunnel/netif_driver/linux/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ close_file: ; /* declaration is not a statement */
uv_fs_req_cleanup(&close_req);
}

void tun_commit_routes(netif_handle tun, uv_loop_t *l) {
int tun_commit_routes(netif_handle tun, uv_loop_t *l) {
uv_work_t *wr = calloc(1, sizeof(uv_work_t));
struct rt_process_cmd *cmd = calloc(1, sizeof(struct rt_process_cmd));
if (tun->route_updates && model_map_size(tun->route_updates) > 0) {
Expand All @@ -200,6 +200,7 @@ void tun_commit_routes(netif_handle tun, uv_loop_t *l) {
tun->route_updates = NULL;
uv_queue_work(l, wr, process_routes_updates, route_updates_done);
}
return 0;
}

static void dns_update_resolvectl(const char* tun, unsigned int ifindex, const char* addr) {
Expand Down

0 comments on commit 7dc0798

Please sign in to comment.