Bug 1258269: Declare logging string-literals in exception_handler.cc as 'const char[]' to fix build warning & for consistency. r=ted

MozReview-Commit-ID: 9UDHiPJus0C

--HG--
extra : rebase_source : a1eda37de65b7d25b37291c993d5c0a369fe29fc
This commit is contained in:
Daniel Holbert 2016-03-20 23:35:13 -07:00
Родитель deba6c4c21
Коммит b84ccd903b
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -532,7 +532,8 @@ bool ExceptionHandler::GenerateDump(CrashContext *context) {
}
if (child != 0) {
char *clonedMsg = "ExceptionHandler::GenerateDump cloned child ";
static const char clonedMsg[] =
"ExceptionHandler::GenerateDump cloned child ";
char pidMsg[32];
unsigned int pidLen = my_uint_len(child);
@ -542,7 +543,8 @@ bool ExceptionHandler::GenerateDump(CrashContext *context) {
logger::write(pidMsg, pidLen);
logger::write("\n", 1);
} else {
char *childMsg = "ExceptionHandler::GenerateDump I'm the child\n";
static const char childMsg[] =
"ExceptionHandler::GenerateDump I'm the child\n";
logger::write(childMsg, my_strlen(childMsg));
}