Make sure that argv[] argument pointers are not modified.
[oweals/u-boot.git] / common / cmd_dtt.c
index 7783c880ba444f49d7993b84e8d8a8f6c7a68acb..3388e43ca046acd6ef92cac03ce41f6715135aa4 100644 (file)
@@ -28,7 +28,7 @@
 #include <dtt.h>
 #include <i2c.h>
 
-int do_dtt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
+int do_dtt (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 {
        int i;
        unsigned char sensors[] = CONFIG_DTT_SENSORS;
@@ -55,6 +55,6 @@ int do_dtt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
 U_BOOT_CMD(
          dtt,  1,      1,      do_dtt,
-         "Digital Thermometer and Thermostat",
-         "        - Read temperature from digital thermometer and thermostat.\n"
+         "Read temperature from Digital Thermometer and Thermostat",
+         ""
 );