From e7c8829c5d8e5d34a2a1e111f1c06aceff256013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 27 May 2009 20:07:43 +0000 Subject: [PATCH] strchr(const char*, ...) returns const char* in C++, identified by gcc 4.4. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30882 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/gensyscalls/gensyscalls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/gensyscalls/gensyscalls.cpp b/src/tools/gensyscalls/gensyscalls.cpp index 97e1b255c4..2703ee4891 100644 --- a/src/tools/gensyscalls/gensyscalls.cpp +++ b/src/tools/gensyscalls/gensyscalls.cpp @@ -521,7 +521,7 @@ public: static string _GetPointerType(const char *type) { - char *parenthesis = strchr(type, ')'); + const char *parenthesis = strchr(type, ')'); if (!parenthesis) return string(type) + "*"; // function pointer type