gcontini
2019-10-13 6c488a934bde37ffcc1b60fa291340d0bf15efc7
src/library/license++.cpp
@@ -9,8 +9,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <cstring>
#include "api/license++.h"
#include "LicenseReader.h"
#include "LicenseReader.hpp"
using namespace std;
void print_error(char out_buffer[256], LicenseInfo* licenseInfo) {
@@ -23,7 +25,7 @@
static void mergeLicenses(vector<license::FullLicenseInfo> licenses,
      LicenseInfo* license) {
   if (license != NULL) {
   if (license != nullptr) {
      time_t curLicense_exp = 0;
      for (auto it = licenses.begin(); it != licenses.end(); it++) {
         //choose the license that expires later...
@@ -68,7 +70,7 @@
   } else {
      result = er.getLastFailure()->event_type;
   }
   if (license != NULL) {
   if (license != nullptr) {
      er.exportLastEvents(license->status, 5);
   }
   return result;