Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
915f380b
Commit
915f380b
authored
Aug 06, 2014
by
Thomas Jahns
🤸
Browse files
Mark cdiLibraryVersion result read-only.
parent
617d8f36
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdi.h
View file @
915f380b
...
...
@@ -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
);
...
...
src/version.c
View file @
915f380b
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment