Mercurial > public > ostc4
diff Discovery/Src/tMenuEdit.c @ 166:255eedad4155 cleanup-1
cleanup: get rid of some compile warnings
Compiling with -Wall and not taking action on produced warnings is
pretty useless.
This fixes chars used as array indexes, and using the NULL pointer
as a 0 constant.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Thu, 07 Mar 2019 21:52:23 +0100 |
parents | cc9c18075e00 |
children | f9b17e898a7a |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEdit.c Thu Mar 07 14:15:33 2019 +0000 +++ b/Discovery/Src/tMenuEdit.c Thu Mar 07 21:52:23 2019 +0100 @@ -1252,7 +1252,7 @@ create_newText_for_actual_Id(); - if(editID == NULL) + if(editID == 0) write_content_without_Id(); else { @@ -1334,7 +1334,7 @@ create_newText_for_actual_Id(); - if(editID == NULL) + if(editID == 0) write_content_without_Id(); else { @@ -1366,7 +1366,7 @@ change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditButtonColor1); - if(editID == NULL) + if(editID == 0) write_content_without_Id(); else { @@ -1404,7 +1404,7 @@ change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditButtonColor1); - if(editID == NULL) + if(editID == 0) write_content_without_Id(); else { @@ -1463,7 +1463,7 @@ else change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditInfo); - if(editID == NULL) + if(editID == 0) write_content_without_Id(); else { @@ -1496,7 +1496,7 @@ change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditFieldRegular); - if(editID == NULL) + if(editID == 0) write_content_without_Id(); else {