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:
parent
e0d6f4eda4
commit
85efbb87e2
|
|
@ -8,7 +8,7 @@ Signed-off-by: Javier Viguera <javier.viguera@digi.com>
|
||||||
1 file changed, 33 insertions(+)
|
1 file changed, 33 insertions(+)
|
||||||
|
|
||||||
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
|
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
|
--- a/tools/env/fw_env.c
|
||||||
+++ b/tools/env/fw_env.c
|
+++ b/tools/env/fw_env.c
|
||||||
@@ -1218,6 +1218,27 @@ static int flash_read (int fd)
|
@@ -1218,6 +1218,27 @@ static int flash_read (int fd)
|
||||||
|
|
@ -18,7 +18,7 @@ index 09f06c874b17..ae6c69eca0ad 100644
|
||||||
+/*
|
+/*
|
||||||
+ * Set mmcboot partition read-write protection
|
+ * 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;
|
+ int fd;
|
||||||
+ char buf[64];
|
+ char buf[64];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue