diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-26 18:19:12 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-26 18:19:12 +0000 |
commit | c5acba479d47d47b0809d2627f22762e77a7669f (patch) | |
tree | 1a9f3f52b9d9fdc502c341ca74ba1231bc98d753 /apps/app_sms.c | |
parent | 678447e2d0fca85d2879bb94a68fda191f26f2dc (diff) |
cast time_t to an int in printf/scanf (issue #5635)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7634 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_sms.c')
-rw-r--r-- | apps/app_sms.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_sms.c b/apps/app_sms.c index c6feb5560..4c15cc185 100644 --- a/apps/app_sms.c +++ b/apps/app_sms.c @@ -694,7 +694,7 @@ static void sms_readfile (sms_t * h, char *fn) } while (fgets (line, sizeof (line), s)) { /* process line in file */ - char *p; + unsigned char *p; for (p = line; *p && *p != '\n' && *p != '\r'; p++); *p = 0; /* strip eoln */ p = line; @@ -1379,8 +1379,8 @@ static int sms_exec (struct ast_channel *chan, void *data) ast_copy_string (h.cli, chan->cid.cid_num, sizeof (h.cli)); { - char *d = data, - *p, + unsigned char *p; + unsigned char *d = data, answer = 0; if (!*d || *d == '|') { ast_log (LOG_ERROR, "Requires queue name\n"); @@ -1449,7 +1449,7 @@ static int sms_exec (struct ast_channel *chan, void *data) d = p; h.udl = 0; while (*p && h.udl < SMSLEN) - h.ud[h.udl++] = utf8decode((unsigned char **)&p); + h.ud[h.udl++] = utf8decode(&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) |