Commit 915f380b authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Mark cdiLibraryVersion result read-only.

parent 617d8f36
......@@ -226,7 +226,7 @@ char *cdiStringError(int cdiErrno);
void cdiDebug(int debug);
char *cdiLibraryVersion(void);
const char *cdiLibraryVersion(void);
void cdiPrintVersion(void);
int cdiHaveFiletype(int filetype);
......
......@@ -7,7 +7,7 @@
*/
#if defined (VERSION)
static char cdi_libvers[] = VERSION " of "__DATE__" "__TIME__;
static const char cdi_libvers[] = VERSION " of "__DATE__" "__TIME__;
#else
# error "VERSION undefined"
#endif
......@@ -15,12 +15,12 @@
#if defined(__cplusplus)
extern "C" {
#endif
char *cdiLibraryVersion(void);
const char *cdiLibraryVersion(void);
#if defined(__cplusplus)
}
#endif
*/
char *cdiLibraryVersion(void)
const char *cdiLibraryVersion(void)
{
return (cdi_libvers);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment