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
This commit is contained in:
Jérôme Duval
2009-05-27 20:07:43 +00:00
parent f595427d00
commit e7c8829c5d
+1 -1
View File
@@ -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