Commit 8a82d617 authored by iposva@chromium.org's avatar iposva@chromium.org

- getc returns an int.

Review URL: http://codereview.chromium.org/159538

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2566 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1a2938dc
...@@ -233,9 +233,9 @@ void OS::LogSharedLibraryAddresses() { ...@@ -233,9 +233,9 @@ void OS::LogSharedLibraryAddresses() {
char attr_r, attr_w, attr_x, attr_p; char attr_r, attr_w, attr_x, attr_p;
if (fscanf(fp, "%" V8PRIxPTR "-%" V8PRIxPTR, &start, &end) != 2) break; if (fscanf(fp, "%" V8PRIxPTR "-%" V8PRIxPTR, &start, &end) != 2) break;
if (fscanf(fp, " %c%c%c%c", &attr_r, &attr_w, &attr_x, &attr_p) != 4) break; if (fscanf(fp, " %c%c%c%c", &attr_r, &attr_w, &attr_x, &attr_p) != 4) break;
char c; int c;
if (attr_r == 'r' && attr_x == 'x') { if (attr_r == 'r' && attr_x == 'x') {
while (c = getc(fp), c != EOF && c != '\n' && c != '/'); while (c = getc(fp), (c != EOF) && (c != '\n') && (c != '/'));
char lib_name[1024]; char lib_name[1024];
bool lib_has_name = false; bool lib_has_name = false;
if (c == '/') { if (c == '/') {
...@@ -250,7 +250,7 @@ void OS::LogSharedLibraryAddresses() { ...@@ -250,7 +250,7 @@ void OS::LogSharedLibraryAddresses() {
} }
LOG(SharedLibraryEvent(lib_name, start, end)); LOG(SharedLibraryEvent(lib_name, start, end));
} }
while (c = getc(fp), c != EOF && c != '\n'); while (c = getc(fp), (c != EOF) && (c != '\n'));
} }
fclose(fp); fclose(fp);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment