dect
/
asterisk
Archived
13
0
Fork 0

pointer signedness warnings cleanup

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37295 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2006-07-07 16:01:36 +00:00
parent eef89b1f47
commit 4b1cb5e483
1 changed files with 2 additions and 2 deletions

View File

@ -693,7 +693,7 @@ static void sms_readfile (sms_t * h, char *fn)
}
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;
@ -713,7 +713,7 @@ static void sms_readfile (sms_t * h, char *fn)
{ /* 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);