22 lines
820 B
Text
22 lines
820 B
Text
|
Index: roclcdr/impl/tools/schedules.c
|
||
|
--- roclcdr/impl/tools/schedules.c.orig
|
||
|
+++ roclcdr/impl/tools/schedules.c
|
||
|
@@ -50,7 +50,7 @@ static Boolean isHourlyInRange(iILcDriverInt inst, iON
|
||
|
int hours = 0;
|
||
|
int mins = 0;
|
||
|
|
||
|
- long modeltime = data->model->getTime( data->model );
|
||
|
+ time_t modeltime = data->model->getTime( data->model );
|
||
|
struct tm* ltm;
|
||
|
|
||
|
ltm = localtime( &modeltime );
|
||
|
@@ -214,7 +214,7 @@ Boolean checkScheduleTime( iILcDriverInt inst, const c
|
||
|
/* check if the schedule index is correct: */
|
||
|
while( entry != NULL ) {
|
||
|
if( idx == scheduleIdx ) {
|
||
|
- long modeltime = data->model->getTime( data->model );
|
||
|
+ time_t modeltime = data->model->getTime( data->model );
|
||
|
struct tm* ltm;
|
||
|
int modelminutes = 0;
|
||
|
int scheduleminutes = 0;
|