patch-roclcdr_impl_tools_schedules_c 906 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-roclcdr_impl_tools_schedules_c,v 1.1 2017/05/07 23:57:16 espie Exp $
  2. Index: roclcdr/impl/tools/schedules.c
  3. --- roclcdr/impl/tools/schedules.c.orig
  4. +++ roclcdr/impl/tools/schedules.c
  5. @@ -50,7 +50,7 @@ static Boolean isHourlyInRange(iILcDriverInt inst, iON
  6. int hours = 0;
  7. int mins = 0;
  8. - long modeltime = data->model->getTime( data->model );
  9. + time_t modeltime = data->model->getTime( data->model );
  10. struct tm* ltm;
  11. ltm = localtime( &modeltime );
  12. @@ -214,7 +214,7 @@ Boolean checkScheduleTime( iILcDriverInt inst, const c
  13. /* check if the schedule index is correct: */
  14. while( entry != NULL ) {
  15. if( idx == scheduleIdx ) {
  16. - long modeltime = data->model->getTime( data->model );
  17. + time_t modeltime = data->model->getTime( data->model );
  18. struct tm* ltm;
  19. int modelminutes = 0;
  20. int scheduleminutes = 0;