mirror of https://gerrit.osmocom.org/libosmocore
lapd: Use the right struct for the talloc_zero_array call
I saw this while playing with talloc pools and wondered why lapd_core is creating a log_info. Use the right struct for the array.
This commit is contained in:
parent
f4f5a8489c
commit
10f0bdecad
|
@ -291,8 +291,8 @@ void lapd_dl_init(struct lapd_datalink *dl, uint8_t k, uint8_t v_range,
|
|||
|
||||
if (!tall_lapd_ctx)
|
||||
tall_lapd_ctx = talloc_named_const(NULL, 1, "lapd context");
|
||||
dl->tx_hist = (struct lapd_history *) talloc_zero_array(tall_lapd_ctx,
|
||||
struct log_info, dl->range_hist);
|
||||
dl->tx_hist = talloc_zero_array(tall_lapd_ctx,
|
||||
struct lapd_history, dl->range_hist);
|
||||
}
|
||||
|
||||
/* reset to IDLE state */
|
||||
|
|
Loading…
Reference in New Issue