X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Farm_semihosting.c;h=2fd658014b3dd2d341d0c76b86a3e486e0942a07;hb=ca19c82d94ae8448520d40b1c4fc3abd44afb857;hp=bdf572ec9897cb006b159d54f610ebef6712ae24;hpb=08d4411b59dd8bd0e7d8009003b71d23acbf6eee;p=openocd.git
diff --git a/src/target/arm_semihosting.c b/src/target/arm_semihosting.c
index bdf572ec98..2fd658014b 100644
--- a/src/target/arm_semihosting.c
+++ b/src/target/arm_semihosting.c
@@ -16,9 +16,7 @@
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
+ * along with this program. If not, see . *
***************************************************************************/
/**
@@ -48,7 +46,7 @@
#include
#include
-static int open_modeflags[12] = {
+static const int open_modeflags[12] = {
O_RDONLY,
O_RDONLY | O_BINARY,
O_RDWR,
@@ -323,7 +321,7 @@ static int do_semihosting(struct target *target)
if (l < s)
result = -1;
else {
- retval = target_write_buffer(target, a, s, (void *)arg);
+ retval = target_write_buffer(target, a, s, (uint8_t *)arg);
if (retval != ERROR_OK)
return retval;
result = 0;