[U-Boot] [PATCH] Make sure that argv[] argument pointers are not modified - Part 2
Wolfgang Denk
wd at denx.de
Tue Jun 29 13:23:09 CEST 2010
Fix compile problems cause by this commit.
Signed-off-by: Wolfgang Denk <wd at denx.de>
---
Sorry, by accident these changes were not checked in yet when I
submitted the patch. Given the size of the patch and the local impact
of this fix I post this as an incremental patch. If nobody complains
I will squash this into the first part when committing.
board/trab/trab_fkt.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/board/trab/trab_fkt.c b/board/trab/trab_fkt.c
index 6faa9b1..268162e 100644
--- a/board/trab/trab_fkt.c
+++ b/board/trab/trab_fkt.c
@@ -115,21 +115,21 @@ int do_rotary_switch (void);
int do_pressure (void);
int do_v_bat (void);
int do_vfd_id (void);
-int do_buzzer (char **);
-int do_led (char **);
-int do_full_bridge (char **);
-int do_dac (char **);
+int do_buzzer (char * const *);
+int do_led (char * const *);
+int do_full_bridge (char * const *);
+int do_dac (char * const *);
int do_motor_contact (void);
-int do_motor (char **);
-int do_pwm (char **);
-int do_thermo (char **);
-int do_touch (char **);
-int do_rs485 (char **);
-int do_serial_number (char **);
+int do_motor (char * const *);
+int do_pwm (char * const *);
+int do_thermo (char * const *);
+int do_touch (char * const *);
+int do_rs485 (char * const *);
+int do_serial_number (char * const *);
int do_crc16 (void);
int do_power_switch (void);
-int do_gain (char **);
-int do_eeprom (char **);
+int do_gain (char * const *);
+int do_eeprom (char * const *);
/* helper functions */
static void adc_init (void);
--
1.7.0.1
More information about the U-Boot
mailing list