From ab841350f99fad48c1bdeb0f62c1713fcfcbf437 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Tue, 23 Nov 2010 16:29:54 -0800 Subject: 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 --- tools/validatekeymaps/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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; -- cgit v1.1