summaryrefslogtreecommitdiff
path: root/apps/app_externalivr.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2009-06-15 19:10:10 +0000
committerKevin P. Fleming <kpfleming@digium.com>2009-06-15 19:10:10 +0000
commitaaeec3b40f147216f6f550de269653eae38e9916 (patch)
tree8a1a80416690533a588361b6c578d0f999f49477 /apps/app_externalivr.c
parent82fb56886e20e6ed5e97058e68fb32c88029f060 (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: https://origsvn.digium.com/svn/asterisk/trunk@200656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_externalivr.c')
-rw-r--r--apps/app_externalivr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c
index 3a8f0a95d..3a3644923 100644
--- a/apps/app_externalivr.c
+++ b/apps/app_externalivr.c
@@ -95,11 +95,11 @@ static const char app[] = "ExternalIVR";
/* XXX the parser in gcc 2.95 gets confused if you don't put a space between 'name' and the comma */
#define ast_chan_log(level, channel, format, ...) ast_log(level, "%s: " format, channel->name , ## __VA_ARGS__)
-enum {
+enum options_flags {
noanswer = (1 << 0),
ignore_hangup = (1 << 1),
run_dead = (1 << 2),
-} options_flags;
+};
AST_APP_OPTIONS(app_opts, {
AST_APP_OPTION('n', noanswer),