diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-10-17 16:39:37 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-10-17 16:39:37 +0000 |
commit | c80715706eeba8eac421f5ec7d29ae3e8062442e (patch) | |
tree | 1d70eaac54b77ec3052e0eaee02b421802d5ac9d | |
parent | 03db5ef0e5ad37814ca90051b19e31c70d7133b9 (diff) |
Remove unnecessary typedef
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@224403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | include/asterisk/app.h | 6 | ||||
-rw-r--r-- | main/app.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h index e2ec86328..bdf0ae4aa 100644 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -84,12 +84,12 @@ struct ast_ivr_menu { 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 @@ void ast_safe_fork_cleanup(void); * \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) } diff --git a/main/app.c b/main/app.c index 580e91b76..e33fb03ab 100644 --- a/main/app.c +++ b/main/app.c @@ -2082,7 +2082,7 @@ void ast_safe_fork_cleanup(void) 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]; |