Skip to content
Snippets Groups Projects
Commit 448c62f9 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

BugID: 826

Changed time_t types in DH_ApplControl to int32 types to be portable with
64-bit platforms.
parent 1662dcb4
No related branches found
No related tags found
No related merge requests found
......@@ -132,8 +132,8 @@ private:
//# --- DataMembers ---
uint16 *itsVersionNumber;
int16 *itsCommand;
time_t *itsScheduleTime;
time_t *itsWaitTime;
int32 *itsScheduleTime;
int32 *itsWaitTime;
uint16 *itsResult;
string itsOptions;
string itsProcList;
......
......@@ -144,9 +144,8 @@ void DH_ApplControl::fillDataPointers() {
itsVersionNumber = getData<uint16>("VersionNumber");
itsCommand = getData<int16> ("Command");
// need old plain C typecast to get the time_t values back.
itsScheduleTime = (time_t*)(getData<int32>("ScheduleTime"));
itsWaitTime = (time_t*)(getData<int32>("WaitTime"));
itsScheduleTime = getData<int32> ("ScheduleTime");
itsWaitTime = getData<int32> ("WaitTime");
itsResult = getData<uint16>("Result");
*itsVersionNumber = 0x0100; // TODO define a constant WriteVersion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment