types: write memory now uses const
[fw/openocd] / src / target / arm946e.c
index ea9226ef1711e81d0fe67d832a8fa95047c6dcf0..092271858fed4a8719d06298635fdaf87e620f6d 100644 (file)
@@ -512,7 +512,7 @@ uint32_t arm946e_invalidate_icache(struct target *target, uint32_t address,
 
 /** Writes a buffer, in the specified word size, with current MMU settings. */
 int arm946e_write_memory(struct target *target, uint32_t address,
-               uint32_t size, uint32_t count, uint8_t *buffer)
+               uint32_t size, uint32_t count, const uint8_t *buffer)
 {
        int retval;