Changeset 1052
- Timestamp:
- 05/19/07 14:30:43 (1 year ago)
- Files:
-
- trunk/pdns/pdns/communicator.hh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pdns/pdns/communicator.hh
r681 r1052 1 1 /* 2 2 PowerDNS Versatile Database Driven Nameserver 3 Copyright (C) 2002 PowerDNS.COM BV3 Copyright (C) 2002-2007 PowerDNS.COM BV 4 4 5 5 This program is free software; you can redistribute it and/or modify … … 25 25 #include <queue> 26 26 #include <list> 27 #include <limits> 27 28 28 29 #ifndef WIN32 … … 95 96 time_t earliest() 96 97 { 97 time_t early= (1<<31)-1; // y2038 problem lurking here :-)98 time_t early=numeric_limits<time_t>::max() - 1; 98 99 for(d_nqueue_t::const_iterator i=d_nqueue.begin();i!=d_nqueue.end();++i) 99 100 early=min(early,i->next);