Clean up warnings in the malloc_debug_* files.

Also clean up cpplint.py-detected lint.

Change-Id: Ia18e89c4c6878764f8d7ed34b8247e7a8d8fe88b
This commit is contained in:
Elliott Hughes
2012-08-28 14:15:04 -07:00
parent 9dfaa63a1c
commit c4d1fecc10
11 changed files with 369 additions and 504 deletions

View File

@@ -47,7 +47,7 @@ char* getcwd(char* buf, size_t size) {
// TODO: if we need to support paths longer than that, we'll have to walk the tree ourselves.
size = getpagesize();
}
buf = allocated_buf = reinterpret_cast<char*>(malloc(allocated_size));
buf = allocated_buf = static_cast<char*>(malloc(allocated_size));
if (buf == NULL) {
// malloc set errno.
return NULL;