projects
/
ocl-icd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
270d75d
)
Static-const-ify ICD loader info strings
master
author
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Fri, 22 Apr 2016 16:15:32 +0000
(18:15 +0200)
committer
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Fri, 22 Apr 2016 16:15:32 +0000
(18:15 +0200)
ocl_icd_loader.c
patch
|
blob
|
blame
|
history
diff --git
a/ocl_icd_loader.c
b/ocl_icd_loader.c
index
e42ed3f
..
9521f38
100644
(file)
--- a/
ocl_icd_loader.c
+++ b/
ocl_icd_loader.c
@@
-705,13
+705,13
@@
static cl_int clGetICDLoaderInfoOCLICD(
void * param_value,
size_t * param_value_size_ret)
{
void * param_value,
size_t * param_value_size_ret)
{
- char cl_icdl_ocl_version[] = "OpenCL " OCL_ICD_OPENCL_VERSION;
- char cl_icdl_version[] = PACKAGE_VERSION;
- char cl_icdl_name[] = PACKAGE_NAME;
- char cl_icdl_vendor[] = "OCL Icd free software";
+
static const
char cl_icdl_ocl_version[] = "OpenCL " OCL_ICD_OPENCL_VERSION;
+
static const
char cl_icdl_version[] = PACKAGE_VERSION;
+
static const
char cl_icdl_name[] = PACKAGE_NAME;
+
static const
char cl_icdl_vendor[] = "OCL Icd free software";
size_t size_string;
size_t size_string;
- char * string_p;
+ c
onst c
har * string_p;
#define oclcase(name, NAME) \
case CL_ICDL_##NAME: \
string_p = cl_icdl_##name; \
#define oclcase(name, NAME) \
case CL_ICDL_##NAME: \
string_p = cl_icdl_##name; \