diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-04-14 21:00:59 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-04-14 21:00:59 +0000 |
commit | 1029b577076bc8500a3fe5cbe651edbcbdf57d25 (patch) | |
tree | cd392785da5ad5ce76b08cbcc04b07c55f7ab861 | |
parent | 160031b7be626783c9bc7849a973084d6041a176 (diff) |
constify a couple of function arguments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | include/asterisk/pbx.h | 9 | ||||
-rw-r--r-- | pbx.c | 4 |
2 files changed, 6 insertions, 7 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h index 54eaf6f01..abe720981 100644 --- a/include/asterisk/pbx.h +++ b/include/asterisk/pbx.h @@ -98,13 +98,12 @@ struct ast_timing { unsigned int minmask[24]; /*!< Mask for minute */ }; -int ast_build_timing(struct ast_timing *i, char *info); -int ast_check_timing(struct ast_timing *i); +int ast_build_timing(struct ast_timing *i, const char *info); +int ast_check_timing(const struct ast_timing *i); struct ast_pbx { - int dtimeout; /*!< Timeout between digits (seconds) */ - int rtimeout; /*!< Timeout for response - (seconds) */ + int dtimeout; /*!< Timeout between digits (seconds) */ + int rtimeout; /*!< Timeout for response (seconds) */ }; @@ -3809,7 +3809,7 @@ static char *months[] = NULL, }; -int ast_build_timing(struct ast_timing *i, char *info_in) +int ast_build_timing(struct ast_timing *i, const char *info_in) { char info_save[256]; char *info; @@ -3835,7 +3835,7 @@ int ast_build_timing(struct ast_timing *i, char *info_in) return 1; } -int ast_check_timing(struct ast_timing *i) +int ast_check_timing(const struct ast_timing *i) { struct tm tm; time_t t = time(NULL); |