summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-09-29 22:31:21 +0200
committerMarek Olšák <[email protected]>2017-09-30 19:03:07 +0200
commit874db83e24fb5195dea69094a58afb8b88e2a7f7 (patch)
treed968f32477a485a7534e8290c4173fbbd34c5a0b /src/egl/drivers/dri2
parent3797a82e785a433245a679b5ad3f84f614380c72 (diff)
egl/dri2: don't use the template keyword
for C++ editors Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2')
-rw-r--r--src/egl/drivers/dri2/platform_wayland.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index dc6fcc1d072..ae3347756bc 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -1451,7 +1451,7 @@ create_tmpfile_cloexec(char *tmpname)
static int
os_create_anonymous_file(off_t size)
{
- static const char template[] = "/mesa-shared-XXXXXX";
+ static const char templ[] = "/mesa-shared-XXXXXX";
const char *path;
char *name;
int fd;
@@ -1463,12 +1463,12 @@ os_create_anonymous_file(off_t size)
return -1;
}
- name = malloc(strlen(path) + sizeof(template));
+ name = malloc(strlen(path) + sizeof(templ));
if (!name)
return -1;
strcpy(name, path);
- strcat(name, template);
+ strcat(name, templ);
fd = create_tmpfile_cloexec(name);