This is the first of a long series to fix compilation warning of VirtGL.
opengl_exec and serverstub first.
Conflicts:
tizen/src/hw/opengl_exec.c
Change-Id: I6aee1309337b27392fc4733cccb7190ac4045ef4
}
}
-static const char *opengl_strtok(const char *s, int *n, char **saveptr, char *prevbuf)
+static const char *opengl_strtok(const char *s, int *n, char const **saveptr, char *prevbuf)
{
- char *start;
+ const char *start;
char *ret;
char *p;
int retlen;
if (retlen == 0) {
*p = 0;
- return NULL;
+ return ret;
}
while (retlen > 0) {
static char *do_eglShaderPatch(const char *source, int length, int *patched_len)
{
- char *saveptr = NULL;
+ const char *saveptr = NULL;
char *sp;
char *p = NULL;