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:
Phenom 2017-07-21 18:59:59 +02:00 committed by csoler
parent bd5603590a
commit 6a0fd1179c

View File

@ -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