diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-05 07:05:45 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-05 07:05:45 +0000 |
commit | d200baf21fd248317b15a401097bcb198ffc7bc7 (patch) | |
tree | d4d11f71011c044ef05fd8598b72abcdfafaa634 /os/common/oslib/src | |
parent | 4ca542e021e4572b685a6679b5cef0ac575953fa (diff) | |
download | ChibiOS-d200baf21fd248317b15a401097bcb198ffc7bc7.tar.gz ChibiOS-d200baf21fd248317b15a401097bcb198ffc7bc7.tar.bz2 ChibiOS-d200baf21fd248317b15a401097bcb198ffc7bc7.zip |
Fixed various typos and documentation-related issues.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10776 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/oslib/src')
-rw-r--r-- | os/common/oslib/src/chfactory.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/os/common/oslib/src/chfactory.c b/os/common/oslib/src/chfactory.c index 45a6a0681..5e6f396fb 100644 --- a/os/common/oslib/src/chfactory.c +++ b/os/common/oslib/src/chfactory.c @@ -81,7 +81,7 @@ static dyn_element_t *dyn_list_find(const char *name, dyn_list_t *dlp) { dyn_element_t *p = dlp->next;
while (p != (dyn_element_t *)dlp) {
- if (strncmp(p->name, name, CH_CFG_FACTORY_MAX_NAMES_LENGHT) == 0) {
+ if (strncmp(p->name, name, CH_CFG_FACTORY_MAX_NAMES_LENGTH) == 0) {
return p;
}
p = p->next;
@@ -132,7 +132,7 @@ static dyn_element_t *dyn_create_object_heap(const char *name, }
/* Initializing object list element.*/
- strncpy(dep->name, name, CH_CFG_FACTORY_MAX_NAMES_LENGHT);
+ strncpy(dep->name, name, CH_CFG_FACTORY_MAX_NAMES_LENGTH);
dep->refs = 1U;
dep->next = dlp->next;
@@ -178,7 +178,7 @@ static dyn_element_t *dyn_create_object_pool(const char *name, }
/* Initializing object list element.*/
- strncpy(dep->name, name, CH_CFG_FACTORY_MAX_NAMES_LENGHT);
+ strncpy(dep->name, name, CH_CFG_FACTORY_MAX_NAMES_LENGTH);
dep->refs = 1U;
dep->next = ch_factory.sem_list.next;
@@ -262,6 +262,10 @@ void _factory_init(void) { * @param[in] name name to be assigned to the registered object
* @param[in] objp pointer to the object to be registered
*
+ * @return The reference to the registered object.
+ * @retval NULL if the object to be registered cannot be allocated or
+ * a registered object with the same name exists.
+ *
* @api
*/
registered_object_t *chFactoryRegisterObject(const char *name,
@@ -558,7 +562,7 @@ dyn_mailbox_t *chFactoryFindMailbox(const char *name) { * by one, if reaches zero then the dynamic mailbox object memory
* is freed.
*
- * @param[in] dbp dynamic mailbox object reference
+ * @param[in] dmp dynamic mailbox object reference
*
* @api
*/
|