[svn-commits] tilghman: trunk r224403 - in /trunk: include/asterisk/app.h main/app.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Oct 17 11:39:43 CDT 2009


Author: tilghman
Date: Sat Oct 17 11:39:37 2009
New Revision: 224403

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=224403
Log:
Remove unnecessary typedef

Modified:
    trunk/include/asterisk/app.h
    trunk/main/app.c

Modified: trunk/include/asterisk/app.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/app.h?view=diff&rev=224403&r1=224402&r2=224403
==============================================================================
--- trunk/include/asterisk/app.h (original)
+++ trunk/include/asterisk/app.h Sat Oct 17 11:39:37 2009
@@ -84,12 +84,12 @@
 	static struct ast_ivr_option __options_##holder[] = foo;\
 	static struct ast_ivr_menu holder = { title, flags, __options_##holder }
 
-typedef enum {
+enum ast_timelen {
 	TIMELEN_HOURS,
 	TIMELEN_MINUTES,
 	TIMELEN_SECONDS,
 	TIMELEN_MILLISECONDS,
-} ast_timelen;
+};
 
 /*!	\brief Runs an IVR menu
 	\return returns 0 on successful completion, -1 on hangup, or -2 on user error in menu */
@@ -595,7 +595,7 @@
  * \retval -1 Failure
  * \since 1.8
  */
-int ast_app_parse_timelen(const char *timestr, int *result, ast_timelen defunit);
+int ast_app_parse_timelen(const char *timestr, int *result, enum ast_timelen defunit);
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }

Modified: trunk/main/app.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/app.c?view=diff&rev=224403&r1=224402&r2=224403
==============================================================================
--- trunk/main/app.c (original)
+++ trunk/main/app.c Sat Oct 17 11:39:37 2009
@@ -2082,7 +2082,7 @@
 	ast_unreplace_sigchld();
 }
 
-int ast_app_parse_timelen(const char *timestr, int *result, ast_timelen unit)
+int ast_app_parse_timelen(const char *timestr, int *result, enum ast_timelen unit)
 {
 	int res;
 	char u[10];




More information about the svn-commits mailing list