diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-09 20:40:10 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-09 20:40:10 +0000 |
commit | 0f9cabe4d5959d4b424512d6dc37ab7d7fdc52d2 (patch) | |
tree | 6c049156bd48f17ee9c0583ade9bf9039abc6ac6 /apps | |
parent | 926f67f6828f49103b6c204fe6da0641465e4dad (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')
-rw-r--r-- | apps/app_followme.c | 36 | ||||
-rw-r--r-- | apps/app_voicemail.c | 6 |
2 files changed, 21 insertions, 21 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); diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 3b6796871..313f33893 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -309,7 +309,7 @@ static char odbc_table[80]; #define DELETE(a,b,c) (vm_delete(c)) #endif -static char VM_SPOOL_DIR[AST_CONFIG_MAX_PATH]; +static char VM_SPOOL_DIR[PATH_MAX]; static char ext_pass_cmd[128]; @@ -651,8 +651,8 @@ static void vm_change_password(struct ast_vm_user *vmu, const char *newpassword) char inbuf[256]; char orig[256]; char currcontext[256] =""; - char tmpin[AST_CONFIG_MAX_PATH]; - char tmpout[AST_CONFIG_MAX_PATH]; + char tmpin[PATH_MAX]; + char tmpout[PATH_MAX]; struct stat statbuf; if (!change_password_realtime(vmu, newpassword)) |