Merge "build: GCC 5.1.x catches some new const, array bounds and missing paren issues" into 13

changes/33/1533/1
Joshua Colp 10 years ago committed by Gerrit Code Review
commit 31f13a1e93

@ -18833,6 +18833,11 @@ static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat, struct
cadence_is_ok = 0;
}
/* This check is only needed to satisfy the compiler that element_count can't cause an out of bounds */
if (element_count >= ARRAY_LEN(c)) {
element_count = ARRAY_LEN(c) - 1;
}
/* Ring cadences cannot be negative */
for (i = 0; i < element_count; i++) {
if (c[i] == 0) {

@ -4682,7 +4682,7 @@ static void sig_pri_handle_subcmds(struct sig_pri_span *pri, int chanpos, int ev
f.frametype = AST_FRAME_TEXT;
f.subclass.integer = 0;
f.offset = 0;
f.data.ptr = &subcmd->u.display.text;
f.data.ptr = (void *)&subcmd->u.display.text;
f.datalen = subcmd->u.display.length + 1;
ast_queue_frame(owner, &f);
ast_channel_unlock(owner);

Loading…
Cancel
Save