diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-09-06 14:31:32 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-09-09 07:04:53 +0200 |
commit | eaa415b2c7e3105a055d56d8ef4b0f2fccb44d59 (patch) | |
tree | d6e052ff293a5173c6df1ed29096086574d807a5 /cpukit/include | |
parent | record: Allow tracing of ISR disable/enable (diff) | |
download | rtems-eaa415b2c7e3105a055d56d8ef4b0f2fccb44d59.tar.bz2 |
rtems: Make rtems_version_control_key() safer
Return the empty string instead of a NULL pointer if no version key is
available.
Diffstat (limited to 'cpukit/include')
-rw-r--r-- | cpukit/include/rtems/version.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/include/rtems/version.h b/cpukit/include/rtems/version.h index d8c1206d91..30dd70cc21 100644 --- a/cpukit/include/rtems/version.h +++ b/cpukit/include/rtems/version.h @@ -60,10 +60,13 @@ int rtems_version_revision( void ); /** * @brief Returns the version control key for the current version of code that - * has been built. The key is specific to the version control system being used - * and allows the built version to be identified. + * has been built. * - * @retval int The version's version control key. + * The key is specific to the version control system being used and allows the + * built version to be identified. + * + * @return The version control key or the empty string if no version control + * key is available. */ const char *rtems_version_control_key( void ); |