mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-02 03:06:31 -04:00
Use safer rstime_t instead of time_t
Avoid problems to serialization on different platforms, without breaking nested STL containers serialization. The conversion have been made with sed, and checked with grep, plus kdiff3 visual ispection, plus rutime tests, so it should be fine.
This commit is contained in:
parent
41aa675a9b
commit
329050a9c2
223 changed files with 930 additions and 911 deletions
|
@ -788,7 +788,7 @@ const std::string CUPnPService::GetStateVariable(
|
|||
#ifdef UPNP_DEBUG
|
||||
std::cerr << "CUPnPService::GetStateVariable() pausing in case of an UPnP event incomming.";
|
||||
#endif
|
||||
time_t begin_time = time(NULL);
|
||||
rstime_t begin_time = time(NULL);
|
||||
while (true) {
|
||||
if (time(NULL) - begin_time > 7) {
|
||||
break;
|
||||
|
@ -1071,7 +1071,7 @@ bool CUPnPControlPoint::AddPortMappings(
|
|||
// Check the number of port mappings before
|
||||
//have a little break in case we just modified the variable, so we have to wait for an event
|
||||
// std::cerr << "GetStateVariable pausing in case of an UPnP event incomming.";
|
||||
// time_t begin_time = time(NULL);
|
||||
// rstime_t begin_time = time(NULL);
|
||||
// while (true) {
|
||||
// if (time(NULL) - begin_time > 7) {
|
||||
// break;
|
||||
|
@ -1101,7 +1101,7 @@ bool CUPnPControlPoint::AddPortMappings(
|
|||
#ifdef UPNP_DEBUG
|
||||
std::cerr << "CUPnPControlPoint::AddPortMappings() GetStateVariable pausing in case of an UPnP event incomming.";
|
||||
#endif
|
||||
time_t begin_time = time(NULL);
|
||||
rstime_t begin_time = time(NULL);
|
||||
while (true) {
|
||||
if (time(NULL) - begin_time > 4) {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue