Replace memcpy with assignment where appropriate

This commit is contained in:
z3APA3A committed 2016-02-05 18:31:17 +03:00
1 parent 3cc9796583
commit 13a7d6be11
8 files changed
+45 -41

No files matched your search

+1 -1
View File
@@ -139,7 +139,7 @@ int timechanged (time_t oldtime, time_t newtime, ROTATION lt){
struct tm tmold;
struct tm *tm;
tm = localtime(&oldtime);
memcpy(&tmold, tm, sizeof(tmold));
tmold = *tm;
tm = localtime(&newtime);
switch(lt){
case MINUTELY: