aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-06 01:21:52 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-06 01:21:52 +0000
commit0179d71e0b80ccdc9a830279f32737d45f6bc15a (patch)
treea33772e4a4e54814cc9bd4658e568f865b718deb /include
parent5998dbac5c395d3351c4656b7a759c69402c830d (diff)
fix some typos in the stringfields documentation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32455 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/stringfields.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asterisk/stringfields.h b/include/asterisk/stringfields.h
index cb34dd37a..cb364d608 100644
--- a/include/asterisk/stringfields.h
+++ b/include/asterisk/stringfields.h
@@ -47,7 +47,7 @@
sample = calloc(1, sizeof(*sample));
if (sample) {
- if (!ast_string_field_init(sample, 256)) {
+ if (ast_string_field_init(sample, 256)) {
free(sample);
sample = NULL;
}
@@ -132,7 +132,7 @@ struct ast_string_field_mgr {
\param size Amount of storage to allocate
\param fields Pointer to the first entry of the field array
\param num_fields Number of fields in the array
- \return 0 on failure, non-zero on success
+ \return 0 on success, non-zero on failure
*/
int __ast_string_field_init(struct ast_string_field_mgr *mgr, size_t size,
ast_string_field *fields, int num_fields);
@@ -205,7 +205,7 @@ void __ast_string_field_index_build(struct ast_string_field_mgr *mgr,
\brief Initialize a field pool and fields
\param x Pointer to a structure containing fields
\param size Amount of storage to allocate
- \return 0 on failure, non-zero on success
+ \return 0 on success, non-zero on failure
*/
#define ast_string_field_init(x, size) \
__ast_string_field_init(&(x)->__field_mgr, size, &(x)->__begin_field[0], ast_string_field_count(x))