diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-06-26 20:25:23 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-06-26 20:25:23 +0200 |
commit | 470ec29b0db526c1592f6a270652657315efddca (patch) | |
tree | 7da372db125bc09f31076a57e484165641c3d3ff /openbsc/src/e1_input.c | |
parent | c05677b036dce4dbf59414dc15b75a5b3472ae6e (diff) |
use taloc_zero() rather than talloc() and explisit memset()
Diffstat (limited to 'openbsc/src/e1_input.c')
-rw-r--r-- | openbsc/src/e1_input.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c index 9de6b0141..56bce019c 100644 --- a/openbsc/src/e1_input.c +++ b/openbsc/src/e1_input.c @@ -373,12 +373,10 @@ e1inp_sign_link_create(struct e1inp_ts *ts, enum e1inp_sign_type type, tall_sigl_ctx = talloc_named_const(tall_bsc_ctx, 1, "e1inp_sign_link"); - link = talloc(tall_sigl_ctx, struct e1inp_sign_link); + link = talloc_zero(tall_sigl_ctx, struct e1inp_sign_link); if (!link) return NULL; - memset(link, 0, sizeof(*link)); - link->ts = ts; link->type = type; INIT_LLIST_HEAD(&link->tx_list); |