[svn-commits] mnicholson: branch mnicholson/chan-mobile-refactor r768 - /team/mnicholson/ch...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Jan 30 11:20:59 CST 2009
Author: mnicholson
Date: Fri Jan 30 11:20:59 2009
New Revision: 768
URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=768
Log:
removed unnecessary 'waitfd' variable from do_monitor* functions
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=768&r1=767&r2=768
==============================================================================
--- team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c (original)
+++ team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c Fri Jan 30 11:20:59 2009
@@ -2131,7 +2131,7 @@
char monitor = 1;
char buf[256];
char cid_num[AST_MAX_EXTENSION], *pcids, *pcide;
- int t, i, smsi, waitfd;
+ int t, i, smsi;
int group, group2;
int callp = 0, callsetupp;
char brsf, nsmode, *p, *p1;
@@ -2161,7 +2161,7 @@
else
t = 1000;
- if ((waitfd = rfcomm_wait(pvt->rfcomm_socket, &t))) {
+ if (rfcomm_wait(pvt->rfcomm_socket, &t)) {
if ((at_msg = at_read_full(hfp->rsock, buf, sizeof(buf))) < 0) {
if (strerror_r(errno, buf, sizeof(buf)))
ast_debug(1, "[%s] error reading from device\n", pvt->id);
@@ -2549,7 +2549,7 @@
struct mbl_pvt *pvt = (struct mbl_pvt *)data;
char monitor = 1;
char buf[256];
- int t, waitfd;
+ int t;
ssize_t s;
pvt->state = MBL_STATE_PREIDLE;
@@ -2561,7 +2561,7 @@
else
t = 1000;
- if (waitfd = rfcomm_wait(pvt->rfcomm_socket, &t)) {
+ if (rfcomm_wait(pvt->rfcomm_socket, &t)) {
if ((s = rfcomm_read(pvt->rfcomm_socket, buf, sizeof(buf) - 1)) < 1) {
ast_verb(3, "Bluetooth Device %s has disconnected, reason (%d).\n", pvt->id, errno);
monitor = 0;
More information about the svn-commits
mailing list