good const, bad const, fixing -Wincompatible-pointer-types-discards-qualifiers

This commit is contained in:
Philippe Teuwen 2019-04-10 10:21:42 +02:00
commit 7f76fea21a
45 changed files with 124 additions and 124 deletions

View file

@ -90,7 +90,7 @@ serial_port uart_open(const char *pcPortName, uint32_t speed) {
timeout.tv_usec = 300000; // 300 000 micro seconds
char *colon = strrchr(addrstr, ':');
char *portstr;
const char *portstr;
if (colon) {
portstr = colon + 1;
*colon = '\0';