From 10f0bdecad8d711ccc5fcc04bb0be0adf11a7902 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 9 Feb 2014 20:03:38 +0100 Subject: 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. --- src/gsm/lapd_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gsm/lapd_core.c') diff --git a/src/gsm/lapd_core.c b/src/gsm/lapd_core.c index ccfa4b43..0d8f1282 100644 --- a/src/gsm/lapd_core.c +++ b/src/gsm/lapd_core.c @@ -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 */ -- cgit v1.2.3