mirror of
https://github.com/pissnet/pissircd.git
synced 2025-07-31 15:32:26 +01:00
- Fixed some compile warnings for Windows
This commit is contained in:
parent
d4c9e0af27
commit
8004d10a65
2 changed files with 5 additions and 4 deletions
1
Changes
1
Changes
|
@ -1198,3 +1198,4 @@
|
|||
use 3 time servers on 3 continents (US, EU, AU) which should be sufficient for anyone but
|
||||
if you got a good one near you you can use that one instead.
|
||||
The time protocol we use is (S)NTP v4.
|
||||
- Fixed some compile warnings for Windows
|
||||
|
|
|
@ -48,9 +48,9 @@
|
|||
|
||||
/* seconds from midnight Jan 1900 - 1970 */
|
||||
#if __STDC__
|
||||
#define DIFFERENCE 2208988800UL
|
||||
#define TSDIFFERENCE 2208988800UL
|
||||
#else
|
||||
#define DIFFERENCE 2208988800
|
||||
#define TSDIFFERENCE 2208988800
|
||||
#endif
|
||||
|
||||
/* Maximum timeservers (which are sent in parallel).
|
||||
|
@ -129,7 +129,7 @@ unsigned long v;
|
|||
return 0;
|
||||
}
|
||||
|
||||
v -= DIFFERENCE;
|
||||
v -= TSDIFFERENCE;
|
||||
|
||||
if (v < 1147900561)
|
||||
{
|
||||
|
@ -150,7 +150,7 @@ int s[MAXTIMESERVERS];
|
|||
int numservers = 0;
|
||||
time_t start, now, t, offset;
|
||||
struct sockaddr_in addr[MAXTIMESERVERS];
|
||||
int n, addrlen, i, highestfd;
|
||||
int n, addrlen, i, highestfd = 0;
|
||||
fd_set r;
|
||||
struct timeval tv;
|
||||
char buf[512], *buf_out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue