ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/ircd.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/ircd.c (file contents):
Revision 7328 by michael, Sun Feb 7 15:31:23 2016 UTC vs.
Revision 7329 by michael, Thu Feb 18 21:07:50 2016 UTC

# Line 70 | Line 70 | struct SetOptions GlobalSetOptions;  /*
70   struct Counter Count;
71   struct ServerState_t server_state;
72   struct ServerStatistics ServerStats;
73 < struct timeval SystemTime;
73 > struct ServerTime SystemTime;
74   struct Connection meConnection;  /* That's also part of me */
75   struct Client me = { .connection = &meConnection };  /* That's me */
76  
# Line 156 | Line 156 | set_time(void)
156      server_die(buf, SERVER_SHUTDOWN);
157    }
158  
159 <  if (newtime.tv_sec < CurrentTime)
159 >  if ((uintmax_t)newtime.tv_sec < CurrentTime)
160    {
161      ilog(LOG_TYPE_IRCD, "System clock is running backwards - (%ju < %ju)",
162 <         newtime.tv_sec, CurrentTime);
162 >         (uintmax_t)newtime.tv_sec, CurrentTime);
163      sendto_realops_flags(UMODE_DEBUG, L_ALL, SEND_NOTICE,
164                           "System clock is running backwards - (%ju < %ju)",
165 <                         newtime.tv_sec, CurrentTime);
166 <    event_set_back_events(CurrentTime - newtime.tv_sec);
165 >                         (uintmax_t)newtime.tv_sec, CurrentTime);
166 >    event_set_back_events(CurrentTime - (uintmax_t)newtime.tv_sec);
167    }
168  
169    SystemTime.tv_sec = newtime.tv_sec;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines