mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-11 18:14:23 +01:00
peer_control: annotate feature bitfields as being taken.
Because tal_dup_arr takes, this does too. Suggested-by: @cdecker Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -81,7 +81,7 @@ static void copy_to_parent_log(const char *prefix,
|
||||
struct peer *new_peer(struct lightningd *ld, u64 dbid,
|
||||
const struct pubkey *id,
|
||||
const struct wireaddr_internal *addr,
|
||||
const u8 *gfeatures, const u8 *lfeatures)
|
||||
const u8 *gfeatures TAKES, const u8 *lfeatures TAKES)
|
||||
{
|
||||
/* We are owned by our channels, and freed manually by destroy_channel */
|
||||
struct peer *peer = tal(NULL, struct peer);
|
||||
|
||||
@@ -58,7 +58,7 @@ struct peer *find_peer_by_dbid(struct lightningd *ld, u64 dbid);
|
||||
struct peer *new_peer(struct lightningd *ld, u64 dbid,
|
||||
const struct pubkey *id,
|
||||
const struct wireaddr_internal *addr,
|
||||
const u8 *gfeatures, const u8 *lfeatures);
|
||||
const u8 *gfeatures TAKES, const u8 *lfeatures TAKES);
|
||||
|
||||
/* Also removes from db. */
|
||||
void delete_peer(struct peer *peer);
|
||||
|
||||
Reference in New Issue
Block a user