From 1029b577076bc8500a3fe5cbe651edbcbdf57d25 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Fri, 14 Apr 2006 21:00:59 +0000 Subject: constify a couple of function arguments git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20138 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/pbx.h | 9 ++++----- 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) */ }; diff --git a/pbx.c b/pbx.c index d4b17dbf7..ba8d22768 100644 --- a/pbx.c +++ b/pbx.c @@ -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); -- cgit v1.2.3