Closed mfrey closed 5 years ago
I'm note sure about moving ccnl_interest_new
from ccnl-relay.c
to ccnl_interest.c
since the function operates on a data structure adherent to ccnl-relay
. Maybe we should make new functions which are called in ccnl-relay.c
and remove the "raw operation" on the data structure. However, this solution would introduce a new level of indirection and not really solve the "issue".
Contribution description
The PR introduces
NULL
checks for functionsccnl_interest_isSame
andccnl_interest_remove_pending
, andccnl_interest_append_pending
inccnl-interest.c
and the corresponding unit tests (for now just the failing functions). It also removes dead code from ccnl-interests.c (a function called ccnl_interest_new) and moves a functionccnl_interest_new
fromccnl-relay.c
.Issues/PRs references
None