summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-03-12 00:30:49 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2019-03-13 09:41:11 +0100
commitbbe652979c707edd5f42c70cd198c837e765edf8 (patch)
tree4a9289e1c0c3e62e2e1689175670dd86a84f4c45 /commands
parentb6bdaf7a4ff3c7b0a89e5c3a5a59ce85894d109c (diff)
downloadbarebox-bbe652979c707edd5f42c70cd198c837e765edf8.tar.gz
commands: memcpy: Make use of min_t()
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/memcpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/memcpy.c b/commands/memcpy.c
index 803f06e..ef25fb7 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) {