[svn-commits] russell: trunk r445 - /trunk/chan_mobile.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Sep 7 21:51:29 CDT 2007
Author: russell
Date: Fri Sep 7 21:51:29 2007
New Revision: 445
URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=445
Log:
Make another change to ast_strlen_zero(). Also change a few variables to
explicitly specify that they only need one bit.
Modified:
trunk/chan_mobile.c
Modified: trunk/chan_mobile.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/chan_mobile.c?view=diff&rev=445&r1=444&r2=445
==============================================================================
--- trunk/chan_mobile.c (original)
+++ trunk/chan_mobile.c Fri Sep 7 21:51:29 2007
@@ -116,7 +116,7 @@
int hci_socket; /* device descriptor */
char id[31]; /* the 'name' from mobile.conf */
bdaddr_t addr; /* adddress of adapter */
- char inuse; /* are we in use ? */
+ unsigned int inuse:1; /* are we in use ? */
int sco_socket;
AST_LIST_ENTRY(adapter_pvt) entry;
};
@@ -152,14 +152,14 @@
char ciev_callsetup_1[4];
char ciev_callsetup_2[4];
char ciev_callsetup_3[4];
- char no_callsetup;
- char has_sms;
+ unsigned int no_callsetup:1;
+ unsigned int has_sms:1;
+ unsigned int sent_answer:1;
char sms_txt[160];
struct ast_dsp *dsp;
struct ast_frame *dsp_fr;
int dtmf_skip;
int skip_frames;
- char sent_answer;
char hangup_count;
AST_LIST_ENTRY(mbl_pvt) entry;
};
@@ -369,10 +369,9 @@
args = ast_strdupa((char *)data);
device = strsep(&args, "|");
- if (device && (device[0] != 0x00)) {
- variable = args;
- } else
+ if (ast_strlen_zero(device))
return -1;
+ variable = args;
stat = 1;
More information about the svn-commits
mailing list