diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-06-09 20:40:10 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-06-09 20:40:10 +0000 |
commit | 8d88bf549da565ca9a041a44272d572a91615c76 (patch) | |
tree | 6c049156bd48f17ee9c0583ade9bf9039abc6ac6 /apps/app_followme.c | |
parent | b31b0be8199777f8741acab0495876f626311542 (diff) |
there is no reason to define our own 'maximum path length' when the POSIX headers already define one for us
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_followme.c')
-rw-r--r-- | apps/app_followme.c | 36 |
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); |