diff options
author | Elliott Hughes <enh@google.com> | 2023-08-10 12:49:36 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2023-08-10 13:49:49 -0700 |
commit | 332a4371eda197cfcbcd01bf197482aecde23a1a (patch) | |
tree | f98d11d6a158167e19fc9141c79d877280a616a6 /src/client/mac/crash_generation/ConfigFile.h | |
parent | e41ddc00ce1a4d6781121347efc507b6916e00ea (diff) | |
parent | bae713be2e51faa5cbe0ac4bcd21c0a3ee72ff8e (diff) | |
download | google-breakpad-332a4371eda197cfcbcd01bf197482aecde23a1a.tar.gz |
Upgrade google-breakpad to v2023.01.27
This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update google-breakpad
For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md
enh@ also reverted various bits of local vandalism, so that the source
matches what's actually upstream at this tag exactly.
Bug: http://b/295251968
Test: TreeHugger
Change-Id: I594a518c720e1d86c46ac18313e8ba90dffd91ad
Diffstat (limited to 'src/client/mac/crash_generation/ConfigFile.h')
-rw-r--r-- | src/client/mac/crash_generation/ConfigFile.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/src/client/mac/crash_generation/ConfigFile.h b/src/client/mac/crash_generation/ConfigFile.h index f2da7c24..4a4ed984 100644 --- a/src/client/mac/crash_generation/ConfigFile.h +++ b/src/client/mac/crash_generation/ConfigFile.h @@ -1,5 +1,4 @@ -// Copyright (c) 2011, Google Inc. -// All rights reserved. +// Copyright 2011 Google LLC // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -11,7 +10,7 @@ // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. -// * Neither the name of Google Inc. nor the names of its +// * Neither the name of Google LLC nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // @@ -35,7 +34,7 @@ namespace google_breakpad { -BOOL EnsureDirectoryPathExists(NSString *dirPath); +BOOL EnsureDirectoryPathExists(NSString* dirPath); //============================================================================= class ConfigFile { @@ -50,11 +49,11 @@ class ConfigFile { } void WriteFile(const char* directory, - const SimpleStringDictionary *configurationParameters, - const char *dump_dir, - const char *minidump_id); + const SimpleStringDictionary* configurationParameters, + const char* dump_dir, + const char* minidump_id); - const char *GetFilePath() { return config_file_path_; } + const char* GetFilePath() { return config_file_path_; } void Unlink() { if (config_file_ != -1) @@ -64,16 +63,16 @@ class ConfigFile { } private: - BOOL WriteData(const void *data, size_t length); + BOOL WriteData(const void* data, size_t length); - BOOL AppendConfigData(const char *key, - const void *data, + BOOL AppendConfigData(const char* key, + const void* data, size_t length); - BOOL AppendConfigString(const char *key, - const char *value); + BOOL AppendConfigString(const char* key, + const char* value); - BOOL AppendCrashTimeParameters(const char *processStartTimeString); + BOOL AppendCrashTimeParameters(const char* processStartTimeString); int config_file_; // descriptor for config file char config_file_path_[PATH_MAX]; // Path to configuration file |