]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't user "new" as a variable name, so we can keep compatible with C++
authorMichael Jerris <mike@jerris.com>
Sun, 12 Nov 2006 21:16:46 +0000 (21:16 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 12 Nov 2006 21:16:46 +0000 (21:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3336 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_ivr.h
src/switch_ivr.c

index 5ac938e033020ae27a90cc0d0bd96844bd4a90e3..65cf1c7395f38e479ff6669754990de886fc7b9a 100644 (file)
@@ -436,7 +436,7 @@ typedef struct switch_ivr_menu_action switch_ivr_menu_action_t;
 
 /*!
  *\brief Create a new menu object.
- *\param new the pointer to the new menu
+ *\param new_menu the pointer to the new menu
  *\param main The top level menu, (NULL if this is the top level one).
  *\param name A pointer to the name of this menu.
  *\param greeting_sound Optional pointer to a main sound (press 1 for this 2 for that).
@@ -447,7 +447,7 @@ typedef struct switch_ivr_menu_action switch_ivr_menu_action_t;
  *\param pool memory pool (NULL to create one)
  *\return SWUTCH_STATUS_SUCCESS if the menu was created
  */
-SWITCH_DECLARE(switch_status_t) switch_ivr_menu_init(switch_ivr_menu_t **new,
+SWITCH_DECLARE(switch_status_t) switch_ivr_menu_init(switch_ivr_menu_t **new_menu,
                                                                                                         switch_ivr_menu_t *main,
                                                                                                         char *name, 
                                                                                                         char *greeting_sound, 
index cd5e49a11f5d800e4128d8133fa961ee87b51076..a2d7c203146d7d327635aa1822471fb2fef0ec88 100644 (file)
@@ -3308,7 +3308,7 @@ static void switch_ivr_menu_stack(switch_ivr_menu_t **top, switch_ivr_menu_t *bo
 
 }
 
-SWITCH_DECLARE(switch_status_t) switch_ivr_menu_init(switch_ivr_menu_t **new,
+SWITCH_DECLARE(switch_status_t) switch_ivr_menu_init(switch_ivr_menu_t **new_menu,
                                                                                                         switch_ivr_menu_t *main,
                                                                                                         char *name, 
                                                                                                         char *greeting_sound, 
@@ -3385,7 +3385,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_init(switch_ivr_menu_t **new,
                menu->flags |= SWITCH_IVR_MENU_FLAG_STACK;
        }
        
-       *new = menu;
+       *new_menu = menu;
        
        return SWITCH_STATUS_SUCCESS;
 }