Clean up warnings in the malloc_debug_* files.
Also clean up cpplint.py-detected lint. Change-Id: Ia18e89c4c6878764f8d7ed34b8247e7a8d8fe88b
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user