diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-15 19:10:10 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-15 19:10:10 +0000 |
commit | a2c426f29fb2dca512c9b029b839aeeac6963017 (patch) | |
tree | 8a1a80416690533a588361b6c578d0f999f49477 /apps/app_minivm.c | |
parent | 5fa0b7c277ad400a1029e71d51e83817414129a5 (diff) |
Last batch of 'static' qualifiers for module-level global variables.
Fix up modules in the 'apps' directory, and also correct the bad example of
enum definitions in include/asterisk/app.h, which many developers followed
(thanks for reading the documentation!). In addition, add some basic usage
examples of the 'pahole' and 'pglobal' tools to the coding guidelines.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@200656 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_minivm.c')
-rw-r--r-- | apps/app_minivm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/app_minivm.c b/apps/app_minivm.c index afbd9dc2e..ac48aa50f 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -548,19 +548,19 @@ static char *app_minivm_mwi = "MinivmMWI"; -enum { +enum minivm_option_flags { OPT_SILENT = (1 << 0), OPT_BUSY_GREETING = (1 << 1), OPT_UNAVAIL_GREETING = (1 << 2), OPT_TEMP_GREETING = (1 << 3), OPT_NAME_GREETING = (1 << 4), OPT_RECORDGAIN = (1 << 5), -} minivm_option_flags; +}; -enum { +enum minivm_option_args { OPT_ARG_RECORDGAIN = 0, OPT_ARG_ARRAY_SIZE = 1, -} minivm_option_args; +}; AST_APP_OPTIONS(minivm_app_options, { AST_APP_OPTION('s', OPT_SILENT), @@ -670,7 +670,7 @@ static struct minivm_stats global_stats; AST_MUTEX_DEFINE_STATIC(minivmlock); /*!< Lock to protect voicemail system */ AST_MUTEX_DEFINE_STATIC(minivmloglock); /*!< Lock to protect voicemail system log file */ -FILE *minivmlogfile; /*!< The minivm log file */ +static FILE *minivmlogfile; /*!< The minivm log file */ static int global_vmminmessage; /*!< Minimum duration of messages */ static int global_vmmaxmessage; /*!< Maximum duration of message */ |