Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv8495

Modified Files:
        asterisk.c 
Log Message:
add count of files used to build Asterisk/modules (issue #4992 with text mod)


Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -d -r1.173 -r1.174
--- asterisk.c  14 Aug 2005 23:47:40 -0000      1.173
+++ asterisk.c  22 Aug 2005 18:45:41 -0000      1.174
@@ -218,6 +218,7 @@
        regex_t regexbuf;
        int havepattern = 0;
        int havename = 0;
+       int count_files = 0;
 
        switch (argc) {
        case 5:
@@ -248,11 +249,14 @@
                        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(&regexbuf);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to