diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-11-23 16:29:54 -0800 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2010-11-23 16:29:54 -0800 |
commit | ab841350f99fad48c1bdeb0f62c1713fcfcbf437 (patch) | |
tree | 04e382e28f25a296d4dacd01a72f8583d44ebfc3 /tools | |
parent | 061cf758841dfc972be3f0ec4857762fafe49aa6 (diff) | |
download | frameworks_base-ab841350f99fad48c1bdeb0f62c1713fcfcbf437.zip frameworks_base-ab841350f99fad48c1bdeb0f62c1713fcfcbf437.tar.gz frameworks_base-ab841350f99fad48c1bdeb0f62c1713fcfcbf437.tar.bz2 |
Fix build on Linux due to different strrchr prototype.
It seems Linux host build has a fancy strrchr overload that preserves
constness. That's nice but it broke this.
Change-Id: I3c9b57b9ce9abc5d334d1e7b2498a3248bd20a6a
Diffstat (limited to 'tools')
-rw-r--r-- | tools/validatekeymaps/Main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/validatekeymaps/Main.cpp b/tools/validatekeymaps/Main.cpp index f0d2fee..6ec223b 100644 --- a/tools/validatekeymaps/Main.cpp +++ b/tools/validatekeymaps/Main.cpp @@ -42,7 +42,7 @@ static void usage() { } static FileType getFileType(const char* filename) { - char *extension = strrchr(filename, '.'); + const char *extension = strrchr(filename, '.'); if (extension) { if (strcmp(extension, ".kl") == 0) { return FILETYPE_KEYLAYOUT; |