summaryrefslogtreecommitdiffhomepage
path: root/ir/lpp
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2014-03-29 07:34:14 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2014-03-29 07:44:18 +0100
commit85e3026a8330fa9112d822f29dc4bf4d85076ed6 (patch)
tree4a59af67dfeeee6e34ef95a985f681972c42127c /ir/lpp
parent95de248b528145620de7c46e894f6513d8de2fc2 (diff)
all: Use MIN.
Diffstat (limited to 'ir/lpp')
-rw-r--r--ir/lpp/lpp_comm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/lpp/lpp_comm.c b/ir/lpp/lpp_comm.c
index c7bc9f4..fe7673e 100644
--- a/ir/lpp/lpp_comm.c
+++ b/ir/lpp/lpp_comm.c
@@ -338,7 +338,7 @@ char *lpp_readbuf(lpp_comm_t *comm, char *buf, size_t buflen)
size_t i;
size_t n = buflen - 1;
size_t len = lpp_readl(comm);
- size_t max_read = n < len ? n : len;
+ size_t max_read = MIN(n, len);
size_t rest = len - max_read;
if(buflen > 0 && buf != NULL) {