diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-22 22:53:49 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-22 22:53:49 +0000 |
commit | 298fa6c9e1d883da32699692365b7fcf4326b534 (patch) | |
tree | c3e6c9f1df9f8d9321bbbd0d8108548d64f706dd /apps | |
parent | c1161711aac0ac5061eb317080ed05a7aa31b305 (diff) |
merge rizzo's patch to make compiler warnings stop the build, and fix a bunch of warnings found
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10805 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_sms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_sms.c b/apps/app_sms.c index eeb20b461..d9b85bfaa 100644 --- a/apps/app_sms.c +++ b/apps/app_sms.c @@ -693,7 +693,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; @@ -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((unsigned char **)&p); + h->ud[o++] = utf8decode(&p); h->udl = o; if (*p) ast_log (LOG_WARNING, "UD too long in %s\n", fn); |