From bbe652979c707edd5f42c70cd198c837e765edf8 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 12 Mar 2019 00:30:49 -0700 Subject: commands: memcpy: Make use of min_t() Signed-off-by: Andrey Smirnov Signed-off-by: Sascha Hauer --- commands/memcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/memcpy.c b/commands/memcpy.c index 803f06e574..ef25fb7b23 100644 --- a/commands/memcpy.c +++ b/commands/memcpy.c @@ -86,7 +86,7 @@ static int do_memcpy(int argc, char *argv[]) while (count > 0) { int now, r; - now = min((loff_t)RW_BUF_SIZE, count); + now = min_t(loff_t, RW_BUF_SIZE, count); r = read(sourcefd, buf, now); if (r < 0) { -- cgit v1.2.3