Skip to content

Commit

Permalink
refactor(libebpfdiscoverysrv): Use project version macro directly
Browse files Browse the repository at this point in the history
  • Loading branch information
hparzych committed Oct 10, 2023
1 parent c15ac42 commit 9ff8fed
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ebpfdiscoverysrv/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ static po::options_description getProgramOptions() {
return desc;
}

static std::string getProgramVersion() {
std::ostringstream ss;
ss << PROJECT_VERSION;
return ss.str();
}

/*
* Logging setup
*/
Expand Down Expand Up @@ -133,7 +127,7 @@ int main(int argc, char** argv) {
}

if (vm.count("version")) {
std::cout << "eBPF-Discovery " << getProgramVersion() << '\n';
std::cout << "eBPF-Discovery " << PROJECT_VERSION << '\n';
return EXIT_SUCCESS;
}

Expand Down

0 comments on commit 9ff8fed

Please sign in to comment.