diff options
author | Alexander Traud <pabstraud@compuserve.com> | 2018-01-06 08:25:14 +0100 |
---|---|---|
committer | Alexander Traud <pabstraud@compuserve.com> | 2018-01-06 22:12:40 +0100 |
commit | f84fcc1fc18604f6989636adb8d06ec8d38aed17 (patch) | |
tree | b45e9f63871e74e0d56f6bbbb689ffeef709fe86 /apps | |
parent | 4eccf697e1c9ee87655cf8a56449dc353cec8a66 (diff) |
General: Avoid implicit conversion to char when changes value to negative.
clang 5.0 warned about this.
ASTERISK-27557
Change-Id: I7cceaa88e147cbdf81a3a7beec5c1c20210fa41e
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_adsiprog.c | 6 | ||||
-rw-r--r-- | apps/app_sms.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_adsiprog.c b/apps/app_adsiprog.c index 065902995..2dd226fbd 100644 --- a/apps/app_adsiprog.c +++ b/apps/app_adsiprog.c @@ -1109,7 +1109,7 @@ static int adsi_process(struct adsi_script *state, char *buf, const char *script tmp[7] = '\0'; } /* Setup initial stuff */ - state->key->retstr[0] = 128; + state->key->retstr[0] = 0x80; /* 1 has the length */ state->key->retstr[2] = state->key->id; /* Put the Full name in */ @@ -1145,7 +1145,7 @@ static int adsi_process(struct adsi_script *state, char *buf, const char *script break; } /* Setup sub */ - state->sub->data[0] = 130; + state->sub->data[0] = 0x82; /* 1 is the length */ state->sub->data[2] = 0x0; /* Clear extensibility bit */ state->sub->datalen = 3; @@ -1262,7 +1262,7 @@ static int adsi_process(struct adsi_script *state, char *buf, const char *script /* Something bad happened */ break; } - disp->data[0] = 129; + disp->data[0] = 0x81; disp->data[1] = disp->datalen - 2; disp->data[2] = ((lrci & 0x3) << 6) | disp->id; disp->data[3] = wi; diff --git a/apps/app_sms.c b/apps/app_sms.c index 88985fbc5..c50a68627 100644 --- a/apps/app_sms.c +++ b/apps/app_sms.c @@ -807,7 +807,7 @@ static void sms_log(sms_t * h, char status) *p++ = '\\'; *p++ = 'r'; } else if (h->ud[n] < 32 || h->ud[n] == 127) { - *p++ = 191; + *p++ = 0xbf; } else { *p++ = h->ud[n]; } |