aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_followme.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-09 20:40:10 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-09 20:40:10 +0000
commit0f9cabe4d5959d4b424512d6dc37ab7d7fdc52d2 (patch)
tree6c049156bd48f17ee9c0583ade9bf9039abc6ac6 /apps/app_followme.c
parent926f67f6828f49103b6c204fe6da0641465e4dad (diff)
there is no reason to define our own 'maximum path length' when the POSIX headers already define one for us
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33351 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_followme.c')
-rw-r--r--apps/app_followme.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c
index 9355bac6c..85dda00aa 100644
--- a/apps/app_followme.c
+++ b/apps/app_followme.c
@@ -92,12 +92,12 @@ struct ast_call_followme {
unsigned int active; /*!< Profile is active (1), or disabled (0). */
char takecall[20]; /*!< Digit mapping to take a call */
char nextindp[20]; /*!< Digit mapping to decline a call */
- char callfromprompt[AST_CONFIG_MAX_PATH];
- char norecordingprompt[AST_CONFIG_MAX_PATH];
- char optionsprompt[AST_CONFIG_MAX_PATH];
- char plsholdprompt[AST_CONFIG_MAX_PATH];
- char statusprompt[AST_CONFIG_MAX_PATH];
- char sorryprompt[AST_CONFIG_MAX_PATH];
+ char callfromprompt[PATH_MAX];
+ char norecordingprompt[PATH_MAX];
+ char optionsprompt[PATH_MAX];
+ char plsholdprompt[PATH_MAX];
+ char statusprompt[PATH_MAX];
+ char sorryprompt[PATH_MAX];
AST_LIST_HEAD_NOLOCK(numbers, number) numbers; /*!< Head of the list of follow-me numbers */
AST_LIST_HEAD_NOLOCK(blnumbers, number) blnumbers; /*!< Head of the list of black-listed numbers */
@@ -115,12 +115,12 @@ struct fm_args {
struct ast_channel *outbound;
char takecall[20]; /*!< Digit mapping to take a call */
char nextindp[20]; /*!< Digit mapping to decline a call */
- char callfromprompt[AST_CONFIG_MAX_PATH];
- char norecordingprompt[AST_CONFIG_MAX_PATH];
- char optionsprompt[AST_CONFIG_MAX_PATH];
- char plsholdprompt[AST_CONFIG_MAX_PATH];
- char statusprompt[AST_CONFIG_MAX_PATH];
- char sorryprompt[AST_CONFIG_MAX_PATH];
+ char callfromprompt[PATH_MAX];
+ char norecordingprompt[PATH_MAX];
+ char optionsprompt[PATH_MAX];
+ char plsholdprompt[PATH_MAX];
+ char statusprompt[PATH_MAX];
+ char sorryprompt[PATH_MAX];
struct ast_flags followmeflags;
};
@@ -156,12 +156,12 @@ static int featuredigittimeout = 5000; /*!< Feature Digit Timeout */
static const char *defaultmoh = "default"; /*!< Default Music-On-Hold Class */
static char takecall[20] = "1", nextindp[20] = "2";
-static char callfromprompt[AST_CONFIG_MAX_PATH] = "followme/call-from";
-static char norecordingprompt[AST_CONFIG_MAX_PATH] = "followme/no-recording";
-static char optionsprompt[AST_CONFIG_MAX_PATH] = "followme/followme-options";
-static char plsholdprompt[AST_CONFIG_MAX_PATH] = "followme/pls-hold-while-try";
-static char statusprompt[AST_CONFIG_MAX_PATH] = "followme/followme-status";
-static char sorryprompt[AST_CONFIG_MAX_PATH] = "followme/followme-sorry";
+static char callfromprompt[PATH_MAX] = "followme/call-from";
+static char norecordingprompt[PATH_MAX] = "followme/no-recording";
+static char optionsprompt[PATH_MAX] = "followme/followme-options";
+static char plsholdprompt[PATH_MAX] = "followme/pls-hold-while-try";
+static char statusprompt[PATH_MAX] = "followme/followme-status";
+static char sorryprompt[PATH_MAX] = "followme/followme-sorry";
static AST_LIST_HEAD_STATIC(followmes, ast_call_followme);