[asterisk-commits] rizzo: branch rizzo/astobj2 r48496 - in /team/rizzo/astobj2: include/asterisk...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Dec 15 08:13:15 MST 2006


Author: rizzo
Date: Fri Dec 15 09:13:15 2006
New Revision: 48496

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48496
Log:
don't make ast_build_string_va() publically visible.
it is only an internal method and nobody uses it
anyways. We can reintroduce when/if there is a need.


Modified:
    team/rizzo/astobj2/include/asterisk/strings.h
    team/rizzo/astobj2/main/utils.c

Modified: team/rizzo/astobj2/include/asterisk/strings.h
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/include/asterisk/strings.h?view=diff&rev=48496&r1=48495&r2=48496
==============================================================================
--- team/rizzo/astobj2/include/asterisk/strings.h (original)
+++ team/rizzo/astobj2/include/asterisk/strings.h Fri Dec 15 09:13:15 2006
@@ -184,20 +184,6 @@
 */
 int ast_build_string(char **buffer, size_t *space, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
 
-/*!
-  \brief Build a string in a buffer, designed to be called repeatedly
-  
-  This is a wrapper for snprintf, that properly handles the buffer pointer
-  and buffer space available.
-
-  \return 0 on success, non-zero on failure.
-  \param buffer current position in buffer to place string into (will be updated on return)
-  \param space remaining space in buffer (will be updated on return)
-  \param fmt printf-style format string
-  \param ap varargs list of arguments for format
-*/
-int ast_build_string_va(char **buffer, size_t *space, const char *fmt, va_list ap);
-
 /*! Make sure something is true */
 /*!
  * Determine if a string containing a boolean value is "true".

Modified: team/rizzo/astobj2/main/utils.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/main/utils.c?view=diff&rev=48496&r1=48495&r2=48496
==============================================================================
--- team/rizzo/astobj2/main/utils.c (original)
+++ team/rizzo/astobj2/main/utils.c Fri Dec 15 09:13:15 2006
@@ -664,7 +664,7 @@
 	return s;
 }
 
-int ast_build_string_va(char **buffer, size_t *space, const char *fmt, va_list ap)
+static int build_string_va(char **buffer, size_t *space, const char *fmt, va_list ap)
 {
 	int result;
 
@@ -689,7 +689,7 @@
 	int result;
 
 	va_start(ap, fmt);
-	result = ast_build_string_va(buffer, space, fmt, ap);
+	result = build_string_va(buffer, space, fmt, ap);
 	va_end(ap);
 
 	return result;



More information about the asterisk-commits mailing list