remove unnecessary casting between XGL_CHAR/char
Many of the changed lines are generated. That should be fixed at some point.
diff --git a/demos/cube.c b/demos/cube.c
index cf19822..fcf65c4 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -1242,9 +1242,9 @@
const XGL_APPLICATION_INFO app = {
.sType = XGL_STRUCTURE_TYPE_APPLICATION_INFO,
.pNext = NULL,
- .pAppName = (const XGL_CHAR *) "cube",
+ .pAppName = "cube",
.appVersion = 0,
- .pEngineName = (const XGL_CHAR *) "cube",
+ .pEngineName = "cube",
.engineVersion = 0,
.apiVersion = XGL_MAKE_VERSION(0, 22, 0),
};
@@ -1258,7 +1258,7 @@
.queueCount = 1,
};
const XGL_CHAR *ext_names[] = {
- (const XGL_CHAR *) "XGL_WSI_X11",
+ "XGL_WSI_X11",
};
const XGL_DEVICE_CREATE_INFO device = {
.sType = XGL_STRUCTURE_TYPE_DEVICE_CREATE_INFO,
diff --git a/demos/tri.c b/demos/tri.c
index 0ca0d24..0059e03 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -812,9 +812,9 @@
const XGL_APPLICATION_INFO app = {
.sType = XGL_STRUCTURE_TYPE_APPLICATION_INFO,
.pNext = NULL,
- .pAppName = (const XGL_CHAR *) "tri",
+ .pAppName = "tri",
.appVersion = 0,
- .pEngineName = (const XGL_CHAR *) "tri",
+ .pEngineName = "tri",
.engineVersion = 0,
.apiVersion = XGL_MAKE_VERSION(0, 22, 0),
};
@@ -828,7 +828,7 @@
.queueCount = 1,
};
const XGL_CHAR *ext_names[] = {
- (const XGL_CHAR *) "XGL_WSI_X11",
+ "XGL_WSI_X11",
};
const XGL_DEVICE_CREATE_INFO device = {
.sType = XGL_STRUCTURE_TYPE_DEVICE_CREATE_INFO,
diff --git a/demos/xglinfo.c b/demos/xglinfo.c
index 84ae453..4dec489 100644
--- a/demos/xglinfo.c
+++ b/demos/xglinfo.c
@@ -291,7 +291,7 @@
XGL_UINT i;
static const XGL_CHAR *known_extensions[] = {
- (const XGL_CHAR *) "XGL_WSI_X11",
+ "XGL_WSI_X11",
};
for (i = 0; i < ARRAY_SIZE(known_extensions); i++) {
@@ -605,9 +605,9 @@
static const XGL_APPLICATION_INFO app_info = {
.sType = XGL_STRUCTURE_TYPE_APPLICATION_INFO,
.pNext = NULL,
- .pAppName = (const XGL_CHAR *) "xglinfo",
+ .pAppName = "xglinfo",
.appVersion = 1,
- .pEngineName = (const XGL_CHAR *) "xglinfo",
+ .pEngineName = "xglinfo",
.engineVersion = 1,
.apiVersion = XGL_MAKE_VERSION(0, 22, 0),
};