Skip to content

Commit

Permalink
libflux: add a list node to message
Browse files Browse the repository at this point in the history
  • Loading branch information
garlick committed Oct 13, 2023
1 parent 0121b25 commit 467ed6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/libflux/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ flux_msg_t *flux_msg_create (int type)
if (!(msg = calloc (1, sizeof (*msg))))
return NULL;
list_head_init (&msg->routes);
list_node_init (&msg->list);
msg->proto.type = type;
if (msg_type_is_valid (msg))
msg_setup_type (msg);
Expand Down
1 change: 1 addition & 0 deletions src/common/libflux/message_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ struct flux_msg {
char *lasterr;
struct aux_item *aux;
int refcount;
struct list_node list; // for struct flux_msglist
};

#define msgtype_is_valid(tp) \
Expand Down

0 comments on commit 467ed6d

Please sign in to comment.