18639 r=dp need to cast away the const returned by the sun C++ 5.0 compiler

This commit is contained in:
akhil.arora%sun.com 1999-11-12 23:52:17 +00:00
Родитель 595cabd731
Коммит d2d2a9d816
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -554,7 +554,7 @@ static void InitTraceLog(void)
fprintf(stdout, "### XPCOM_MEM_LOG_CLASSES defined -- only logging these classes: ");
const char* cp = classes;
for (;;) {
char* cm = strchr(cp, ',');
char* cm = (char*) strchr(cp, ',');
if (cm) {
*cm = '\0';
}
@ -592,7 +592,7 @@ static void InitTraceLog(void)
fprintf(stdout, "### XPCOM_MEM_LOG_OBJECTS defined -- only logging these objects: ");
const char* cp = objects;
for (;;) {
char* cm = strchr(cp, ',');
char* cm = (char*) strchr(cp, ',');
if (cm) {
*cm = '\0';
}

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

@ -554,7 +554,7 @@ static void InitTraceLog(void)
fprintf(stdout, "### XPCOM_MEM_LOG_CLASSES defined -- only logging these classes: ");
const char* cp = classes;
for (;;) {
char* cm = strchr(cp, ',');
char* cm = (char*) strchr(cp, ',');
if (cm) {
*cm = '\0';
}
@ -592,7 +592,7 @@ static void InitTraceLog(void)
fprintf(stdout, "### XPCOM_MEM_LOG_OBJECTS defined -- only logging these objects: ");
const char* cp = objects;
for (;;) {
char* cm = strchr(cp, ',');
char* cm = (char*) strchr(cp, ',');
if (cm) {
*cm = '\0';
}