[svn-commits] trunk r32455 - /trunk/include/asterisk/stringfields.h

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Jun 5 18:21:53 MST 2006


Author: russell
Date: Mon Jun  5 20:21:52 2006
New Revision: 32455

URL: http://svn.digium.com/view/asterisk?rev=32455&view=rev
Log:
fix some typos in the stringfields documentation

Modified:
    trunk/include/asterisk/stringfields.h

Modified: trunk/include/asterisk/stringfields.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/stringfields.h?rev=32455&r1=32454&r2=32455&view=diff
==============================================================================
--- trunk/include/asterisk/stringfields.h (original)
+++ trunk/include/asterisk/stringfields.h Mon Jun  5 20:21:52 2006
@@ -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 @@
   \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 @@
   \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))



More information about the svn-commits mailing list