summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-07-15 16:13:26 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-07-15 16:13:26 +0000
commit904beec507f7bfda93ddbb2ac2667f4a8cad53da (patch)
tree1db95d25a9b95eb1fa6d0383ecc23595fd7fda65
parent7070dafdbf332fa029288e5c8fcf0448be11a86c (diff)
ensure that format string macros are undef'd after use (bug #4716)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xapps/app_groupcount.c1
-rwxr-xr-xchannels/chan_zap.c4
-rwxr-xr-xfile.c3
3 files changed, 6 insertions, 2 deletions
diff --git a/apps/app_groupcount.c b/apps/app_groupcount.c
index ab31a3942..57c00c820 100755
--- a/apps/app_groupcount.c
+++ b/apps/app_groupcount.c
@@ -204,6 +204,7 @@ static int group_show_channels(int fd, int argc, char *argv[])
ast_cli(fd, "%d active channel%s\n", numchans, (numchans != 1) ? "s" : "");
return RESULT_SUCCESS;
+#undef FORMAT_STRING
}
static char *tdesc = "Group Management Routines";
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 84ab23a18..892048ad8 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -9494,9 +9494,9 @@ static int zap_show_status(int fd, int argc, char *argv[]) {
}
close(ctl);
- #undef FORMAT
- #undef FORMAT2
return RESULT_SUCCESS;
+#undef FORMAT
+#undef FORMAT2
}
static char show_channels_usage[] =
diff --git a/file.c b/file.c
index 9cb6d2393..07c88d158 100755
--- a/file.c
+++ b/file.c
@@ -1223,6 +1223,9 @@ static int show_file_formats(int fd, int argc, char *argv[])
};
ast_mutex_unlock(&formatlock);
return RESULT_SUCCESS;
+#undef FORMAT
+#undef FORMAT2
+
}
struct ast_cli_entry show_file =