[asterisk-commits] trunk r19188 - /trunk/channels/chan_skinny.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Apr 11 03:00:27 MST 2006


Author: rizzo
Date: Tue Apr 11 05:00:24 2006
New Revision: 19188

URL: http://svn.digium.com/view/asterisk?rev=19188&view=rev
Log:
staticize a function, and normalize code in preparation to module changes.


Modified:
    trunk/channels/chan_skinny.c

Modified: trunk/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_skinny.c?rev=19188&r1=19187&r2=19188&view=diff
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Tue Apr 11 05:00:24 2006
@@ -73,7 +73,6 @@
 /*************************************
  * Skinny/Asterisk Protocol Settings *
  *************************************/
-static const char desc[] = "Skinny Client Control Protocol (Skinny)";
 static const char tdesc[] = "Skinny Client Control Protocol (Skinny)";
 static const char config[] = "skinny.conf";
 
@@ -3228,7 +3227,7 @@
 	return 0;
 }
 
-void delete_devices(void)
+static void delete_devices(void)
 {
 	struct skinny_device *d, *dlast;
 	struct skinny_line *l, *llast;
@@ -3366,12 +3365,12 @@
 	return usecnt;
 }
 
-const char *key()
+const char *key(void)
 {
 	return ASTERISK_GPL_KEY;
 }
 
-const char *description()
-{
-	return (char *) desc;
-}
+const char *description(void)
+{
+	return "Skinny Client Control Protocol (Skinny)";
+}



More information about the asterisk-commits mailing list