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
This commit is contained in:
Kevin P. Fleming
2005-07-15 16:13:26 +00:00
parent 7070dafdbf
commit 904beec507
3 changed files with 6 additions and 2 deletions
+1
View File
@@ -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";
+2 -2
View File
@@ -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[] =
+3
View File
@@ -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 =