diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-22 18:45:41 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-22 18:45:41 +0000 |
commit | ca209244e27cf46c2eaeb137f8bf79308f4ffab7 (patch) | |
tree | e51f16aecf64381713cc6acc72562dff3af5a3c8 /asterisk.c | |
parent | f6620b3ed220650f3659389233c87caba140cb7b (diff) |
add count of files used to build Asterisk/modules (issue #4992 with text mod)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6350 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c index ca3aec3a9..fd28291ec 100755 --- a/asterisk.c +++ b/asterisk.c @@ -218,6 +218,7 @@ static int handle_show_version_files(int fd, int argc, char *argv[]) regex_t regexbuf; int havepattern = 0; int havename = 0; + int count_files = 0; switch (argc) { case 5: @@ -248,11 +249,14 @@ static int handle_show_version_files(int fd, int argc, char *argv[]) continue; ast_cli(fd, FORMAT, iterator->file, iterator->version); - + count_files++; if (havename) break; } AST_LIST_UNLOCK(&file_versions); + if (!havename) { + ast_cli(fd, "%d files listed.\n", count_files); + } if (havepattern) regfree(®exbuf); |