mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
General: Avoid implicit conversion to char when changes value to negative.
clang 5.0 warned about this. ASTERISK-27557 Change-Id: I7cceaa88e147cbdf81a3a7beec5c1c20210fa41e
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user