Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Unified Diff: src/platform/update_engine/update_check_action.cc

Issue 1599029: update engine: 32- and 64-bit compile (Closed)
Patch Set: int32->int32_t, PRIi64, 80 cols for review Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform/update_engine/update_check_action.cc
diff --git a/src/platform/update_engine/update_check_action.cc b/src/platform/update_engine/update_check_action.cc
index a9d303cb293e0d6e8666afe86a5e71702f253624..b92e78862b0253828c3ef4d0d1beef185ce7828a 100644
--- a/src/platform/update_engine/update_check_action.cc
+++ b/src/platform/update_engine/update_check_action.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "update_engine/update_check_action.h"
+#include <inttypes.h>
#include <sstream>
#include <libxml/parser.h>
@@ -172,8 +173,7 @@ string XmlGetProperty(xmlNode* node, const char* name) {
// error.
off_t ParseInt(const string& str) {
off_t ret = 0;
-
- int rc = sscanf(str.c_str(), "%lld", &ret);
+ int rc = sscanf(str.c_str(), "%" PRIi64, &ret);
if (rc < 1) {
// failure
return 0;

Powered by Google App Engine
This is Rietveld 408576698