Skip to content

Commit

Permalink
libzmqutil: use size_t not int
Browse files Browse the repository at this point in the history
Problem: a function in the internal mpart class uses an int type where
size_t would be more appropriate.

Switch to size_t.
  • Loading branch information
garlick committed Dec 11, 2024
1 parent e2a5286 commit af5e55d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/libzmqutil/mpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static int mpart_append (zlist_t *mpart, zmq_msg_t *part)
return 0;
}

int mpart_addmem (zlist_t *mpart, const void *buf, int size)
int mpart_addmem (zlist_t *mpart, const void *buf, size_t size)
{
zmq_msg_t *part;

Expand Down
2 changes: 1 addition & 1 deletion src/common/libzmqutil/mpart.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
void mpart_destroy (zlist_t *mpart);
zlist_t *mpart_create (void);
int mpart_addmem (zlist_t *mpart, const void *buf, int size);
int mpart_addmem (zlist_t *mpart, const void *buf, size_t size);
int mpart_addstr (zlist_t *mpart, const char *s);
zlist_t *mpart_recv (void *sock);
int mpart_send (void *sock, zlist_t *mpart);
Expand Down

0 comments on commit af5e55d

Please sign in to comment.