Skip to content

Commit

Permalink
always output error message in crash_and_burn()
Browse files Browse the repository at this point in the history
This aligns crash_and_burn() with errno_crash_and_burn()
and addresses issue #300.
  • Loading branch information
auerswal authored and schweikert committed Feb 24, 2024
1 parent 4151976 commit c3a2f2c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/fping.c
Original file line number Diff line number Diff line change
Expand Up @@ -2680,9 +2680,7 @@ void add_addr(char *name, char *host, struct sockaddr *ipaddr, socklen_t ipaddr_

void crash_and_burn(char *message)
{
if (verbose_flag)
fprintf(stderr, "%s: %s\n", prog, message);

fprintf(stderr, "%s: %s\n", prog, message);
exit(4);
}

Expand Down

0 comments on commit c3a2f2c

Please sign in to comment.