Skip to content

Commit

Permalink
Add libevent version to redsocks -v output
Browse files Browse the repository at this point in the history
  • Loading branch information
darkk committed Mar 17, 2016
1 parent 6814523 commit 64afce9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ int main(int argc, char **argv)
break;
case 'v':
puts(redsocks_version);
printf("Built with libevent-%s\n", LIBEVENT_VERSION);
printf("Runs with libevent-%s\n", event_get_version());
if (LIBEVENT_VERSION_NUMBER != event_get_version_number()) {
printf("Warning: libevent version number mismatch.\n"
" Headers: %8x\n"
" Runtime: %8x\n", LIBEVENT_VERSION_NUMBER, event_get_version_number());
}
return EXIT_SUCCESS;
default:
printf(
Expand Down

0 comments on commit 64afce9

Please sign in to comment.