Skip to content

Commit

Permalink
Code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyHairy committed Feb 5, 2025
1 parent f9dbb56 commit cd832dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ int main(int argc, char *argv[])
break;
}
if (strcmp(long_options[option_index].name,
"ifup-hook") == 0) {
"ifup-hook") == 0) {
free(cli_cfg.ifup_hook);
cli_cfg.ifup_hook = strdup(optarg);
break;
Expand Down
6 changes: 3 additions & 3 deletions src/tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ static int on_ppp_if_up(struct tunnel *tunnel)

if (tunnel->config->ifup_hook) {
log_info("Executing ifup hook...\n");

int code = system(tunnel->config->ifup_hook);
if (code != 0) {

if (code != 0)
log_warn("ifup hook failed with exit code %i\n", code);
}
}

log_info("Tunnel is up and running.\n");
Expand Down

0 comments on commit cd832dd

Please sign in to comment.