[asterisk-commits] moy: branch moy/mfcr2 r129568 - /team/moy/mfcr2/channels/chan_zap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 10 11:06:22 CDT 2008


Author: moy
Date: Thu Jul 10 11:06:21 2008
New Revision: 129568

URL: http://svn.digium.com/view/asterisk?view=rev&rev=129568
Log:
added display of openr2 revision

Modified:
    team/moy/mfcr2/channels/chan_zap.c

Modified: team/moy/mfcr2/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/moy/mfcr2/channels/chan_zap.c?view=diff&rev=129568&r1=129567&r2=129568
==============================================================================
--- team/moy/mfcr2/channels/chan_zap.c (original)
+++ team/moy/mfcr2/channels/chan_zap.c Thu Jul 10 11:06:21 2008
@@ -12509,7 +12509,6 @@
 
 static char *handle_mfcr2_version(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
-	const char *version;
 	switch (cmd) {
 	case CLI_INIT:
 		e->command = "mfcr2 show version";
@@ -12520,8 +12519,7 @@
 	case CLI_GENERATE:
 		return NULL;
 	}
-	version = openr2_get_version();
-	ast_cli(a->fd, "OpenR2 version: %s\n", version);
+	ast_cli(a->fd, "OpenR2 version: %s, revision: %s\n", openr2_get_version(), openr2_get_revision());
 	return CLI_SUCCESS;
 }	
 




More information about the asterisk-commits mailing list