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:
Holger Hans Peter Freyther 2014-02-09 20:03:38 +01:00
parent f4f5a8489c
commit 10f0bdecad
1 changed files with 2 additions and 2 deletions

View File

@ -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 */