diff --git a/Time.cpp b/Time.cpp index 5ca1327..3488ba2 100644 --- a/Time.cpp +++ b/Time.cpp @@ -201,7 +201,7 @@ void breakTime(time_t timeInput, tmElements_t &tm){ tm.Day = time + 1; // day of month } -time_t makeTime(tmElements_t &tm){ +time_t makeTime(const tmElements_t &tm){ // assemble time elements into time_t // note year argument is offset from 1970 (see macros in time.h to convert to other formats) // previous version used full four digit year (or digits since 2000),i.e. 2009 was 2009 or 9 diff --git a/TimeLib.h b/TimeLib.h index ddb1668..645e62a 100644 --- a/TimeLib.h +++ b/TimeLib.h @@ -136,7 +136,7 @@ void setSyncInterval(time_t interval); // set the number of seconds between r /* low level functions to convert to and from system time */ void breakTime(time_t time, tmElements_t &tm); // break time_t into elements -time_t makeTime(tmElements_t &tm); // convert time elements into time_t +time_t makeTime(const tmElements_t &tm); // convert time elements into time_t } // extern "C++" #endif // __cplusplus