]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fixed a build warning
authorThe Aviator <aviator45003@gmail.com>
Sun, 17 May 2015 16:45:42 +0000 (12:45 -0400)
committerThe Aviator <aviator45003@gmail.com>
Sun, 17 May 2015 20:54:32 +0000 (16:54 -0400)
Just a mismatched type, improperly done cast.

src/inspircd.cpp

index 766aeaf8ef05d92cb4979252aac8423ce7825a0c..656be220f6c60d37469dd88f793a5b00bcc7daa2 100644 (file)
@@ -814,11 +814,11 @@ int InspIRCd::Run()
                        /* Allow a buffer of two seconds drift on this so that ntpdate etc dont harass admins */
                        if (TIME.tv_sec < OLDTIME - 2)
                        {
-                               SNO->WriteToSnoMask('d', "\002EH?!\002 -- Time is flowing BACKWARDS in this dimension! Clock drifted backwards %lu secs.", (unsigned long)OLDTIME-TIME.tv_sec);
+                               SNO->WriteToSnoMask('d', "\002EH?!\002 -- Time is flowing BACKWARDS in this dimension! Clock drifted backwards %lu secs.", (unsigned long)(OLDTIME-TIME.tv_sec));
                        }
                        else if (TIME.tv_sec > OLDTIME + 2)
                        {
-                               SNO->WriteToSnoMask('d', "\002EH?!\002 -- Time is jumping FORWARDS! Clock skipped %lu secs.", (unsigned long)TIME.tv_sec - OLDTIME);
+                               SNO->WriteToSnoMask('d', "\002EH?!\002 -- Time is jumping FORWARDS! Clock skipped %lu secs.", (unsigned long)(TIME.tv_sec - OLDTIME));
                        }
 \r
                        OLDTIME = TIME.tv_sec;