diff options
author | Steve Murphy <murf@digium.com> | 2006-12-21 19:44:20 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2006-12-21 19:44:20 +0000 |
commit | 7b338004bfc2934ce4d99160c47a2e1b1449e0ee (patch) | |
tree | 9213841cb68bd7576686b8baea3c095dcc4fcdd2 /apps/app_sms.c | |
parent | a2e6c6277f31dcc9464070e0021a40598a7e9979 (diff) |
a quick fix to app_sms.c to get rid of cursed compiler warnings so I can compile under --enable-dev-mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 0d0a0c1e1..c68d3b958 100644 --- a/apps/app_sms.c +++ b/apps/app_sms.c @@ -245,7 +245,7 @@ typedef struct sms_s { int protocol; /*!< ETSI SMS protocol to use (passed at app call) */ int oseizure; /*!< protocol 2: channel seizure bits to send */ int framenumber; /*!< protocol 2: frame number (for sending ACK0 or ACK1) */ - unsigned char udtxt[SMSLEN]; /*!< user data (message), PLAIN text */ + char udtxt[SMSLEN]; /*!< user data (message), PLAIN text */ } sms_t; /* different types of encoding */ @@ -707,7 +707,7 @@ static unsigned char packaddress (unsigned char *o, char *i) static void sms_log (sms_t * h, char status) { if (*h->oa || *h->da) { - int o = open (log_file, O_CREAT | O_APPEND | O_WRONLY, 0666); + int o = open (log_file, O_CREAT | O_APPEND | O_WRONLY, AST_FILE_MODE); if (o >= 0) { char line[1000], mrs[3] = "", *p; unsigned char n; @@ -1184,14 +1184,14 @@ static int sms_handleincoming_proto2 (sms_t * h) msgsz=20-1; if (option_verbose > 2) ast_verbose (VERBOSE_PREFIX_3 "SMS-P2 Origin#%02X=[%.*s]\n",msg,msgsz,&h->imsg[f]); - ast_copy_string (h->oa, &h->imsg[f], msgsz+1); + ast_copy_string (h->oa, (char*)(&h->imsg[f]), msgsz+1); break; case 0x18: /* Destination (from TE/phone) */ if (msgsz>=20) msgsz=20-1; if (option_verbose > 2) ast_verbose (VERBOSE_PREFIX_3 "SMS-P2 Destination#%02X=[%.*s]\n",msg,msgsz,&h->imsg[f]); - ast_copy_string (h->da, &h->imsg[f], msgsz+1); + ast_copy_string (h->da, (char*)(&h->imsg[f]), msgsz+1); break; case 0x1C: /* Notify */ if (option_verbose > 2) |