summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/wkspace.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-02-16 00:24:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-02-16 00:24:49 +0000
commita0323a9f8f673f2b4d7a70e2019fa47d3df76d96 (patch)
tree86f72a2427700fa35af175738c9efb404fae2e96 /cpukit/score/include/rtems/score/wkspace.h
parent2011-02-15 Jennifer Averett (diff)
downloadrtems-a0323a9f8f673f2b4d7a70e2019fa47d3df76d96.tar.bz2
2011-02-15 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libmisc/capture/capture.c, posix/src/keyfreememory.c, posix/src/pthread.c, score/include/rtems/score/wkspace.h, score/src/objectextendinformation.c, score/src/objectnamespaceremove.c, score/src/objectsetname.c, score/src/threadclose.c, score/src/threadinitialize.c, score/src/wkspace.c: Many places were checking for a NULL pointer before calling _Workspace_Free. By moving the check into _Workspace_Free, we eliminate a number of conditional paths and make it harder to return a NULL pointer.
Diffstat (limited to 'cpukit/score/include/rtems/score/wkspace.h')
-rw-r--r--cpukit/score/include/rtems/score/wkspace.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/wkspace.h b/cpukit/score/include/rtems/score/wkspace.h
index c29b2dd4c9..c3a0700a01 100644
--- a/cpukit/score/include/rtems/score/wkspace.h
+++ b/cpukit/score/include/rtems/score/wkspace.h
@@ -70,10 +70,12 @@ void *_Workspace_Allocate(
*
* @param block is the memory to free
*
- * @return true if the free was successful.
+ * @note If @a block is equal to NULL, then the request is ignored.
+ * This allows the caller to not worry about whether or not
+ * a pointer is NULL.
*/
-bool _Workspace_Free(
+void _Workspace_Free(
void *block
);