[asterisk-addons-commits] mnicholson: branch mnicholson/chan-mobile-refactor r743 - /team/mnicholson/ch...

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Mon Jan 26 11:41:49 CST 2009


Author: mnicholson
Date: Mon Jan 26 11:41:49 2009
New Revision: 743

URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=743
Log:
tweaked argument names of rfcomm_write() to match rfcomm_read() and
rfcomm_wait()

Modified:
    team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c

Modified: team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c
URL: http://svn.digium.com/svn-view/asterisk-addons/team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c?view=diff&rev=743&r1=742&r2=743
==============================================================================
--- team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c (original)
+++ team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c Mon Jan 26 11:41:49 2009
@@ -217,7 +217,7 @@
 static void do_alignment_detection(struct mbl_pvt *pvt, char *buf, int buflen);
 
 static int rfcomm_connect(bdaddr_t src, bdaddr_t dst, int remote_channel);
-static int rfcomm_write(int rfcomm_socket, char *buf);
+static int rfcomm_write(int rsock, char *buf);
 static int rfcomm_wait(int rsock, int *ms);
 static ssize_t rfcomm_read(int rsock, char *buf, size_t count);
 
@@ -1011,18 +1011,18 @@
 
 }
 
-static int rfcomm_write(int rfcomm_socket, char *buf)
+static int rfcomm_write(int rsock, char *buf)
 {
 
 	char *p;
 	ssize_t num_write;
 	int len;
 
-	ast_debug(1, "rfcomm_write() (%d) [%s]\n", rfcomm_socket, buf);
+	ast_debug(1, "rfcomm_write() (%d) [%s]\n", rsock, buf);
 	len = strlen(buf);
 	p = buf;
 	while (len > 0) {
-		if ((num_write = write(rfcomm_socket, p, len)) == -1) {
+		if ((num_write = write(rsock, p, len)) == -1) {
 			ast_debug(1, "rfcomm_write() error [%d]\n", errno);
 			return 0;
 		}




More information about the asterisk-addons-commits mailing list