[Asterisk-cvs] asterisk/apps app_sms.c,1.25,1.26
kpfleming
kpfleming
Wed Sep 7 14:56:40 CDT 2005
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv30459/apps
Modified Files:
app_sms.c
Log Message:
eliminate signedness warnings (issue #5130)
Index: app_sms.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_sms.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- app_sms.c 15 Jul 2005 23:00:46 -0000 1.25
+++ app_sms.c 7 Sep 2005 18:57:01 -0000 1.26
@@ -134,7 +134,7 @@
unsigned int vp; /* validity period in minutes, 0 for not set */
unsigned short ud[SMSLEN]; /* user data (message), UCS-2 coded */
unsigned char udh[SMSLEN]; /* user data header */
- unsigned char cli[20]; /* caller ID */
+ char cli[20]; /* caller ID */
unsigned char ophase; /* phase (0-79) for 0 and 1 frequencies (1300Hz and 2100Hz) */
unsigned char ophasep; /* phase (0-79) for 1200 bps */
unsigned char obyte; /* byte being sent */
@@ -682,7 +682,7 @@
}
while (fgets (line, sizeof (line), s))
{ /* process line in file */
- unsigned char *p;
+ char *p;
for (p = line; *p && *p != '\n' && *p != '\r'; p++);
*p = 0; /* strip eoln */
p = line;
@@ -702,7 +702,7 @@
{ /* parse message (UTF-8) */
unsigned char o = 0;
while (*p && o < SMSLEN)
- h->ud[o++] = utf8decode (&p);
+ h->ud[o++] = utf8decode((unsigned char **)&p);
h->udl = o;
if (*p)
ast_log (LOG_WARNING, "UD too long in %s\n", fn);
@@ -1363,7 +1363,7 @@
ast_copy_string (h.cli, chan->cid.cid_num, sizeof (h.cli));
{
- unsigned char *d = data,
+ char *d = data,
*p,
answer = 0;
if (!*d || *d == '|') {
@@ -1431,7 +1431,7 @@
d = p;
h.udl = 0;
while (*p && h.udl < SMSLEN)
- h.ud[h.udl++] = utf8decode (&p);
+ h.ud[h.udl++] = utf8decode((unsigned char **)&p);
if (is7bit (h.dcs) && packsms7 (0, h.udhl, h.udh, h.udl, h.ud) < 0)
ast_log (LOG_WARNING, "Invalid 7 bit GSM data\n");
if (is8bit (h.dcs) && packsms8 (0, h.udhl, h.udh, h.udl, h.ud) < 0)
More information about the svn-commits
mailing list