constify a couple of function arguments
authorLuigi Rizzo <rizzo@icir.org>
Fri, 14 Apr 2006 21:00:59 +0000 (21:00 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Fri, 14 Apr 2006 21:00:59 +0000 (21:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20138 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/pbx.h
pbx.c

index 54eaf6f..abe7209 100644 (file)
@@ -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 d4b17db..ba8d227 100644 (file)
--- 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);