aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 =