u-boot-fw-utils: clean compiler warning

Modify patch to clean compiler warning:

warning: passing argument 1 of 'sysfs_mmcboot_set_protection' discards
'const' qualifier from pointer target type

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2017-01-24 13:55:19 +01:00
parent e0d6f4eda4
commit 85efbb87e2
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ Signed-off-by: Javier Viguera <javier.viguera@digi.com>
1 file changed, 33 insertions(+)
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 09f06c874b17..ae6c69eca0ad 100644
index 09f06c874b17..e4e242b35bd1 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -1218,6 +1218,27 @@ static int flash_read (int fd)
@ -18,7 +18,7 @@ index 09f06c874b17..ae6c69eca0ad 100644
+/*
+ * Set mmcboot partition read-write protection
+ */
+static int sysfs_mmcboot_set_protection(char *device, int value)
+static int sysfs_mmcboot_set_protection(const char *device, int value)
+{
+ int fd;
+ char buf[64];