mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Replace memcpy with assignment where appropriate
This commit is contained in:
1 parent
3cc9796583
commit
13a7d6be11
8 files changed
+45
-41
No files matched your search
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user