aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_sms.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-29 17:31:15 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-29 17:31:15 +0000
commit562decf81af443d24afd3f1fc3d133b8b2b7cee3 (patch)
tree94459693ea2dd67c898fb3fdf122ea5bf1053e4d /apps/app_sms.c
parentfb567961c75474a7fc8e9b40e4b3e288ba7372b3 (diff)
suppress compiler warning
Code shamelessly borrowed from r41271 (it was the same warning/fix) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41274 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_sms.c')
-rw-r--r--apps/app_sms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_sms.c b/apps/app_sms.c
index aa9619b76..8fd5ee617 100644
--- a/apps/app_sms.c
+++ b/apps/app_sms.c
@@ -691,6 +691,7 @@ static void sms_readfile (sms_t * h, char *fn)
while (fgets (line, sizeof (line), s))
{ /* process line in file */
char *p;
+ void *pp = &p;
for (p = line; *p && *p != '\n' && *p != '\r'; p++);
*p = 0; /* strip eoln */
p = line;
@@ -710,7 +711,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(pp);
h->udl = o;
if (*p)
ast_log (LOG_WARNING, "UD too long in %s\n", fn);