aboutsummaryrefslogtreecommitdiffstats
path: root/libc/bionic/getcwd.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-08-28 14:15:04 -0700
committerElliott Hughes <enh@google.com>2012-08-29 12:08:13 -0700
commitc4d1fecc105063e68a5090a6900b63d1b9a24287 (patch)
tree93dad687b245a981d3c47ede05b43345b86202fe /libc/bionic/getcwd.cpp
parent9dfaa63a1c0d1b8e75dd9d7077a8103a19821fa9 (diff)
downloadandroid_bionic-c4d1fecc105063e68a5090a6900b63d1b9a24287.tar.gz
android_bionic-c4d1fecc105063e68a5090a6900b63d1b9a24287.tar.bz2
android_bionic-c4d1fecc105063e68a5090a6900b63d1b9a24287.zip
Clean up warnings in the malloc_debug_* files.
Also clean up cpplint.py-detected lint. Change-Id: Ia18e89c4c6878764f8d7ed34b8247e7a8d8fe88b
Diffstat (limited to 'libc/bionic/getcwd.cpp')
-rw-r--r--libc/bionic/getcwd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/getcwd.cpp b/libc/bionic/getcwd.cpp
index e06f52eaa..2ff22dbca 100644
--- a/libc/bionic/getcwd.cpp
+++ b/libc/bionic/getcwd.cpp
@@ -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;