diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-27 02:05:56 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-27 02:05:56 +0000 |
commit | c1c4a6835a005bcd381052e755cc26a46f66db89 (patch) | |
tree | 3421b918084f6597c80f7f727198540add854645 /apps/app_sms.c | |
parent | c12493b76531de8199f33a2a34238f7def8b194b (diff) |
Reduce warnings on signedness conversions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7643 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_sms.c')
-rw-r--r-- | apps/app_sms.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/app_sms.c b/apps/app_sms.c index 4c15cc185..3f91477e5 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 */ - unsigned char *p; + char *p; for (p = line; *p && *p != '\n' && *p != '\r'; p++); *p = 0; /* strip eoln */ p = line; @@ -1393,11 +1393,11 @@ static int sms_exec (struct ast_channel *chan, void *data) LOCAL_USER_REMOVE(u); return -1; } - strncpy (h.queue, d, p - d); + strncpy (h.queue, (char *)d, p - d); if (*p == '|') p++; d = p; - for (p = h.queue; *p; p++) + for (p = (unsigned char *)h.queue; *p; p++) if (!isalnum (*p)) *p = '-'; /* make very safe for filenames */ while (*d && *d != '|') { @@ -1429,20 +1429,20 @@ static int sms_exec (struct ast_channel *chan, void *data) } if (*d == '|') { /* submitting a message, not taking call. */ - /* depricated, use smsq instead */ + /* deprecated, use smsq instead */ d++; h.scts = time (0); for (p = d; *p && *p != '|'; p++); if (*p) *p++ = 0; - if (strlen (d) >= sizeof (h.oa)) { + if (strlen ((char *)d) >= sizeof (h.oa)) { ast_log (LOG_ERROR, "Address too long %s\n", d); return 0; } if (h.smsc) { - ast_copy_string (h.oa, d, sizeof (h.oa)); + ast_copy_string (h.oa, (char *)d, sizeof (h.oa)); } else { - ast_copy_string (h.da, d, sizeof (h.da)); + ast_copy_string (h.da, (char *)d, sizeof (h.da)); } if (!h.smsc) ast_copy_string (h.oa, h.cli, sizeof (h.oa)); |