[commit] r2185 - in freeswitch/trunk/src: . include mod/formats/mod_sndfile
Author: anthm Date: Thu Jul 27 11:45:19 2006 New Revision: 2185 Modified: freeswitch/trunk/src/include/switch_core.h freeswitch/trunk/src/mod/formats/mod_sndfile/mod_sndfile.c freeswitch/trunk/src/switch_core.c freeswitch/trunk/src/switch_loadable_module.c Log: typo Modified: freeswitch/trunk/src/include/switch_core.h ============================================================================== --- freeswitch/trunk/src/include/switch_core.h (original) +++ freeswitch/trunk/src/include/switch_core.h Thu Jul 27 11:45:19 2006 @@ -206,7 +206,7 @@ \return a void pointer to the allocated memory \note this memory never goes out of scope until the core is destroyed */ -SWITCH_DECLARE(void *) switch_core_permenant_alloc(switch_size_t memory); +SWITCH_DECLARE(void *) switch_core_permanent_alloc(switch_size_t memory); /*! \brief Allocate memory directly from a memory pool @@ -226,11 +226,11 @@ SWITCH_DECLARE(void *) switch_core_session_alloc(switch_core_session_t *session, switch_size_t memory); /*! - \brief Copy a string using permenant memory allocation + \brief Copy a string using permanent memory allocation \param todup the string to duplicate \return a pointer to the newly duplicated string */ -SWITCH_DECLARE(char *) switch_core_permenant_strdup(char *todup); +SWITCH_DECLARE(char *) switch_core_permanent_strdup(char *todup); /*! \brief Copy a string using memory allocation from a session's pool Modified: freeswitch/trunk/src/mod/formats/mod_sndfile/mod_sndfile.c ============================================================================== --- freeswitch/trunk/src/mod/formats/mod_sndfile/mod_sndfile.c (original) +++ freeswitch/trunk/src/mod/formats/mod_sndfile/mod_sndfile.c Thu Jul 27 11:45:19 2006 @@ -287,7 +287,7 @@ sfinfo.channels = 1; len = ((major_count + (exlen + 2)) * sizeof(char *)); - supported_formats = switch_core_permenant_alloc(len); + supported_formats = switch_core_permanent_alloc(len); len = 0; for (m = 0; m < major_count; m++) { Modified: freeswitch/trunk/src/switch_core.c ============================================================================== --- freeswitch/trunk/src/switch_core.c (original) +++ freeswitch/trunk/src/switch_core.c Thu Jul 27 11:45:19 2006 @@ -857,9 +857,9 @@ } /* **ONLY** alloc things with these functions that **WILL NOT** need - to be freed *EVER* ie this is for *PERMENANT* memory allocation */ + to be freed *EVER* ie this is for *PERMANENT* memory allocation */ -SWITCH_DECLARE(void *) switch_core_permenant_alloc(switch_size_t memory) +SWITCH_DECLARE(void *) switch_core_permanent_alloc(switch_size_t memory) { void *ptr = NULL; assert(runtime.memory_pool != NULL); @@ -874,7 +874,7 @@ return ptr; } -SWITCH_DECLARE(char *) switch_core_permenant_strdup(char *todup) +SWITCH_DECLARE(char *) switch_core_permanent_strdup(char *todup) { char *duped = NULL; switch_size_t len; Modified: freeswitch/trunk/src/switch_loadable_module.c ============================================================================== --- freeswitch/trunk/src/switch_loadable_module.c (original) +++ freeswitch/trunk/src/switch_loadable_module.c Thu Jul 27 11:45:19 2006 @@ -270,7 +270,7 @@ break; } - if ((module = switch_core_permenant_alloc(sizeof(switch_loadable_module_t))) == 0) { + if ((module = switch_core_permanent_alloc(sizeof(switch_loadable_module_t))) == 0) { err = "Could not allocate memory\n"; break; } @@ -283,7 +283,7 @@ return SWITCH_STATUS_GENERR; } - module->filename = switch_core_permenant_strdup(filename); + module->filename = switch_core_permanent_strdup(filename); module->module_interface = module_interface; module->switch_module_load = load_func_ptr; @@ -365,7 +365,7 @@ const char *err = NULL; switch_loadable_module_interface_t *module_interface = NULL; - if ((module = switch_core_permenant_alloc(sizeof(switch_loadable_module_t))) == 0) { + if ((module = switch_core_permanent_alloc(sizeof(switch_loadable_module_t))) == 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Couldn't allocate memory\n"); return SWITCH_STATUS_GENERR; } @@ -384,7 +384,7 @@ break; } - if ((module = switch_core_permenant_alloc(sizeof(switch_loadable_module_t))) == 0) { + if ((module = switch_core_permanent_alloc(sizeof(switch_loadable_module_t))) == 0) { err = "Could not allocate memory\n"; break; } @@ -397,7 +397,7 @@ return SWITCH_STATUS_GENERR; } - module->filename = switch_core_permenant_strdup(filename); + module->filename = switch_core_permanent_strdup(filename); module->module_interface = module_interface; module->switch_module_load = load_func_ptr;
participants (1)
-
Freeswitch SVN