Commit da186818 authored by Christoffer Ackelman's avatar Christoffer Ackelman

Fixed compilation warning in sev_dbms.

parent c9ee7d02
...@@ -4728,7 +4728,7 @@ int sev_dbms::get_events(pwr_tStatus *sts, void *thread, pwr_tOid oid, ...@@ -4728,7 +4728,7 @@ int sev_dbms::get_events(pwr_tStatus *sts, void *thread, pwr_tOid oid,
return 0; return 0;
} }
char query[700]; char query[1300];
char starttimstr[40]; char starttimstr[40];
char endtimstr[40]; char endtimstr[40];
pwr_tTime stime, etime; pwr_tTime stime, etime;
...@@ -5045,7 +5045,7 @@ int sev_dbms::get_events(pwr_tStatus *sts, void *thread, pwr_tOid oid, ...@@ -5045,7 +5045,7 @@ int sev_dbms::get_events(pwr_tStatus *sts, void *thread, pwr_tOid oid,
strncpy(e.eventname, row[j++], sizeof(e.eventname)); strncpy(e.eventname, row[j++], sizeof(e.eventname));
list.push_back(e); list.push_back(e);
} }
printf("ecnt %d\n", list.size()); printf("ecnt %ld\n", list.size());
mysql_free_result(result); mysql_free_result(result);
*sts = SEV__SUCCESS; *sts = SEV__SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment