[PATCH 1/2] commands: ubiupdatevol: store return value of read() in a signed int
Ulrich Ölmann
u.oelmann at pengutronix.de
Mon Sep 5 12:36:17 PDT 2016
Signed-off-by: Ulrich Ölmann <u.oelmann at pengutronix.de>
---
commands/ubi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/commands/ubi.c b/commands/ubi.c
index 65d2d256a830..dd981f95ea5d 100644
--- a/commands/ubi.c
+++ b/commands/ubi.c
@@ -14,10 +14,9 @@
static int do_ubiupdatevol(int argc, char *argv[])
{
- int fd_img, fd_vol, ret = 0;
+ int count, fd_img, fd_vol, ret = 0;
uint64_t size = 0;
struct stat st;
- unsigned int count;
void *buf;
if (argc - optind < 2)
--
2.8.1
More information about the barebox
mailing list