]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_df.c
Make sure that argv[] argument pointers are not modified.
[u-boot] / common / cmd_df.c
index d64f9009d7332b745a20a0d4978c774d58b88eba..6a086663bff0a3f9a47be4456e32d0160fad5153 100644 (file)
@@ -6,7 +6,7 @@
 #include <common.h>
 #include <df.h>
 
-static int do_df(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+static int do_df(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        const char *cmd;
 
@@ -34,4 +34,4 @@ usage:
 U_BOOT_CMD(
        sf,     2,      1,      do_serial_flash,
        "Serial flash sub-system",
-       "probe [bus:]cs         - init flash device on given SPI bus and CS\n")
+       "probe [bus:]cs         - init flash device on given SPI bus and CS")