aboutsummaryrefslogtreecommitdiff
path: root/src/processor/minidump.cc
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2006-10-25 21:25:41 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2006-10-25 21:25:41 +0000
commit80e98391dc7ff361355e72c24c0fb222518bcdfc (patch)
tree3747105fd65bec1859651ad972c3201d7033ff85 /src/processor/minidump.cc
parentminidump_dump does not print MDRawSystemInfo::processor_revision. No bug. (diff)
downloadbreakpad-80e98391dc7ff361355e72c24c0fb222518bcdfc.tar.xz
Fix minor style problems (#58). r=bryner
http://groups.google.com/group/airbag-dev/browse_thread/thread/bbcecab979fa82bc git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@49 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor/minidump.cc')
-rw-r--r--src/processor/minidump.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/processor/minidump.cc b/src/processor/minidump.cc
index e195519a..f0d728c3 100644
--- a/src/processor/minidump.cc
+++ b/src/processor/minidump.cc
@@ -44,15 +44,16 @@ typedef SSIZE_T ssize_t;
#define open _open
#define read _read
#define lseek _lseek
-#else // _WIN32
+#else // _WIN32
#define O_BINARY 0
-#endif // _WIN32
+#endif // _WIN32
#include <map>
#include <vector>
-#include "processor/minidump.h"
#include "processor/range_map-inl.h"
+
+#include "processor/minidump.h"
#include "processor/scoped_ptr.h"
@@ -649,7 +650,7 @@ const u_int8_t* MinidumpMemoryRegion::GetMemory() {
scoped_ptr< vector<u_int8_t> > memory(
new vector<u_int8_t>(descriptor_->memory.data_size));
- if (!minidump_->ReadBytes(&(*memory)[0], descriptor_->memory.data_size))
+ if (!minidump_->ReadBytes(&(*memory)[0], descriptor_->memory.data_size))
return NULL;
memory_ = memory.release();
@@ -2126,7 +2127,7 @@ bool Minidump::Read() {
// Initialize the stream_map map, which speeds locating a stream by
// type.
unsigned int stream_type = directory_entry->stream_type;
- switch(stream_type) {
+ switch (stream_type) {
case THREAD_LIST_STREAM:
case MODULE_LIST_STREAM:
case MEMORY_LIST_STREAM:
@@ -2203,7 +2204,8 @@ void Minidump::Print() {
printf(" stream_count = %d\n", header_.stream_count);
printf(" stream_directory_rva = 0x%x\n", header_.stream_directory_rva);
printf(" checksum = 0x%x\n", header_.checksum);
- struct tm* timestruct = gmtime((time_t*)&header_.time_date_stamp);
+ struct tm* timestruct =
+ gmtime(reinterpret_cast<time_t*>(&header_.time_date_stamp));
char timestr[20];
strftime(timestr, 20, "%Y-%m-%d %H:%M:%S", timestruct);
printf(" time_date_stamp = 0x%x %s\n", header_.time_date_stamp,
@@ -2365,4 +2367,4 @@ T* Minidump::GetStream(T** stream) {
}
-} // namespace google_airbag
+} // namespace google_airbag