mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 15:28:28 -05:00
Fix CppCheck in p3historymgr.cc
/libretroshare/src/pqi/p3historymgr.cc:353: warning: Cppcheck(invalidScanfArgType_int): %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'.
This commit is contained in:
parent
bd5603590a
commit
6a0fd1179c
@ -350,7 +350,7 @@ bool p3HistoryMgr::loadList(std::list<RsItem*>& load)
|
||||
|
||||
if (kit->key == "MAX_STORAGE_TIME") {
|
||||
uint32_t val ;
|
||||
if (sscanf(kit->value.c_str(), "%d", &val) == 1)
|
||||
if (sscanf(kit->value.c_str(), "%u", &val) == 1)
|
||||
mMaxStorageDurationSeconds = val ;
|
||||
|
||||
#ifdef HISTMGR_DEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user