mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 17:15:16 -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
|
@ -287,7 +287,7 @@ bool setRawString(void *data, uint32_t size, uint32_t *offset, const std::string
|
|||
return true;
|
||||
}
|
||||
|
||||
bool getRawTimeT(const void *data,uint32_t size,uint32_t *offset,time_t& t)
|
||||
bool getRawTimeT(const void *data,uint32_t size,uint32_t *offset,rstime_t& t)
|
||||
{
|
||||
uint64_t T ;
|
||||
bool res = getRawUInt64(data,size,offset,&T) ;
|
||||
|
@ -295,7 +295,7 @@ bool getRawTimeT(const void *data,uint32_t size,uint32_t *offset,time_t& t)
|
|||
|
||||
return res ;
|
||||
}
|
||||
bool setRawTimeT(void *data, uint32_t size, uint32_t *offset, const time_t& t)
|
||||
bool setRawTimeT(void *data, uint32_t size, uint32_t *offset, const rstime_t& t)
|
||||
{
|
||||
return setRawUInt64(data,size,offset,t) ;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue