diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-03-12 00:30:49 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-13 09:41:11 +0100 |
commit | bbe652979c707edd5f42c70cd198c837e765edf8 (patch) | |
tree | 4a9289e1c0c3e62e2e1689175670dd86a84f4c45 | |
parent | b6bdaf7a4ff3c7b0a89e5c3a5a59ce85894d109c (diff) | |
download | barebox-bbe652979c707edd5f42c70cd198c837e765edf8.tar.gz barebox-bbe652979c707edd5f42c70cd198c837e765edf8.tar.xz |
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>
-rw-r--r-- | commands/memcpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |