From aeffe1056f9ff6526d87a16ef55222899f5528f7 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Wed, 6 Mar 2013 14:04:42 +0000 Subject: Use stdint types everywhere R=mark at https://breakpad.appspot.com/535002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1121 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/solaris/dump_symbols.cc | 2 +- src/common/solaris/guid_creator.cc | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/common/solaris') diff --git a/src/common/solaris/dump_symbols.cc b/src/common/solaris/dump_symbols.cc index fb040265..168d0b28 100644 --- a/src/common/solaris/dump_symbols.cc +++ b/src/common/solaris/dump_symbols.cc @@ -156,7 +156,7 @@ const char *kStrtabName = ".strtab"; const int demangleLen = 20000; // Offset to the string table. -u_int64_t stringOffset = 0; +uint64_t stringOffset = 0; // Update the offset to the start of the string index of the next // object module for every N_ENDM stabs. diff --git a/src/common/solaris/guid_creator.cc b/src/common/solaris/guid_creator.cc index 70940259..c4d58e0a 100644 --- a/src/common/solaris/guid_creator.cc +++ b/src/common/solaris/guid_creator.cc @@ -53,10 +53,10 @@ class GUIDGenerator { bool CreateGUID(GUID *guid) const { guid->data1 = random(); - guid->data2 = (u_int16_t)(random()); - guid->data3 = (u_int16_t)(random()); - *reinterpret_cast(&guid->data4[0]) = random(); - *reinterpret_cast(&guid->data4[4]) = random(); + guid->data2 = (uint16_t)(random()); + guid->data3 = (uint16_t)(random()); + *reinterpret_cast(&guid->data4[0]) = random(); + *reinterpret_cast(&guid->data4[4]) = random(); return true; } }; @@ -74,8 +74,8 @@ bool GUIDToString(const GUID *guid, char *buf, int buf_len) { assert(buf_len > kGUIDStringLength); int num = snprintf(buf, buf_len, kGUIDFormatString, guid->data1, guid->data2, guid->data3, - *reinterpret_cast(&(guid->data4[0])), - *reinterpret_cast(&(guid->data4[4]))); + *reinterpret_cast(&(guid->data4[0])), + *reinterpret_cast(&(guid->data4[4]))); if (num != kGUIDStringLength) return false; -- cgit v1.2.1