From 6a0fd1179c8ecb60f58890f8efae47f874250269 Mon Sep 17 00:00:00 2001 From: Phenom Date: Fri, 21 Jul 2017 18:59:59 +0200 Subject: [PATCH] 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 *'. --- libretroshare/src/pqi/p3historymgr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/pqi/p3historymgr.cc b/libretroshare/src/pqi/p3historymgr.cc index 72a2640ec..39c2960a3 100644 --- a/libretroshare/src/pqi/p3historymgr.cc +++ b/libretroshare/src/pqi/p3historymgr.cc @@ -350,7 +350,7 @@ bool p3HistoryMgr::loadList(std::list& 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