osmux: Clean up helper macro osmux_chunk_length()
Change-Id: I482d8c5be08610788c2ed98e3b87ae4184075e8d
This commit is contained in:
parent
21bcf6abd8
commit
3fbf035923
|
@ -363,8 +363,7 @@ out:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define osmux_chunk_length(msg, rem) (rem - msg->len);
|
#define osmux_chunk_length(msg, rem) ((rem) - (msg)->len)
|
||||||
|
|
||||||
static int osmux_read_fd_cb(struct osmo_fd *ofd, unsigned int what)
|
static int osmux_read_fd_cb(struct osmo_fd *ofd, unsigned int what)
|
||||||
{
|
{
|
||||||
struct msgb *msg;
|
struct msgb *msg;
|
||||||
|
|
Loading…
Reference in New Issue