Skip to content

Commit

Permalink
api rename project_name->feature_name
Browse files Browse the repository at this point in the history
  • Loading branch information
gcontini committed May 3, 2020
1 parent 4bca675 commit 8d7d51f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/inspector/inspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static LCC_EVENT_TYPE verifyLicense(const string& fname) {
for (CSimpleIniA::Entry section : sections) {
const string section_name(section.pItem, 15);
if (section_name != LCC_PROJECT_NAME) {
std::copy(section_name.begin(), section_name.end(), callerInformation.project_name);
std::copy(section_name.begin(), section_name.end(), callerInformation.feature_name);
LCC_EVENT_TYPE result = acquire_license(&callerInformation, &licLocation, &licenseInfo);
if (result == LICENSE_OK) {
cout << "project [" << section.pItem << "]: license OK" << endl;
Expand Down
2 changes: 1 addition & 1 deletion src/library/licensecc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ LCC_EVENT_TYPE acquire_license(const CallerInformations* callerInformation, cons
string project;
size_t str_size;
if (callerInformation != nullptr &&
(str_size = license::mstrnlen_s(callerInformation->feature_name, sizeof callerInformation->project_name)) > 0) {
(str_size = license::mstrnlen_s(callerInformation->feature_name, sizeof callerInformation->feature_name)) > 0) {
project = string(callerInformation->feature_name, str_size);
} else {
project = string(LCC_PROJECT_NAME);
Expand Down

0 comments on commit 8d7d51f

Please sign in to comment.