Resolve problems found by enabling -Wwrite-strings compilation flag

This commit is contained in:
Roland Dobai
2018-04-09 12:58:35 +02:00
parent 33480d1a2c
commit 744c2dcdd9
18 changed files with 30 additions and 27 deletions

View File

@@ -66,7 +66,7 @@ static void ATTR_GDBFN gdbPacketChar(char c) {
}
//Send a string as part of a packet
static void ATTR_GDBFN gdbPacketStr(char *c) {
static void ATTR_GDBFN gdbPacketStr(const char *c) {
while (*c!=0) {
gdbPacketChar(*c);
c++;