diff Discovery/Src/tInfo.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 b7689d9e888a
children 2bb1db22b5f5
line wrap: on
line diff
--- a/Discovery/Src/tInfo.c	Thu Mar 07 14:15:33 2019 +0000
+++ b/Discovery/Src/tInfo.c	Thu Mar 07 21:52:23 2019 +0100
@@ -148,7 +148,7 @@
     tIscreen.FBStartAdress = getFrame(14);
 
 //	GFX_SetFramesTopBottom(tIscreen.FBStartAdress, tIcursor.FBStartAdress,480);
-    GFX_SetFramesTopBottom(tIscreen.FBStartAdress, NULL,480);
+    GFX_SetFramesTopBottom(tIscreen.FBStartAdress, 0,480);
     infoColor = CLUT_InfoSurface;
 
     if(modeToStart == StIDEBUG)
@@ -218,7 +218,7 @@
         refreshInfo_Compass();
 
     if(inDebugMode() || (get_globalState() == StICOMPASS)) /* could be timeout and exitInfo */
-        GFX_SetFramesTopBottom(tIscreen.FBStartAdress, NULL,480);
+        GFX_SetFramesTopBottom(tIscreen.FBStartAdress, 0,480);
 
     if(oldIscreen)
         releaseFrame(14,oldIscreen);
@@ -534,7 +534,7 @@
 
     change_CLUT_entry((CLUT_InfoField0 + TIid), CLUT_InfoButtonColor1);
 
-    if(editID == NULL)
+    if(editID == 0)
         tInfo_write_content_without_Id();
     else
     {
@@ -571,7 +571,7 @@
 
     change_CLUT_entry((CLUT_InfoField0 + TIid), CLUT_InfoButtonColor1);
 
-    if(editID == NULL)
+    if(editID == 0)
         tInfo_write_content_without_Id();
     else
     {
@@ -607,7 +607,7 @@
     else
         change_CLUT_entry((CLUT_InfoField0 + TIid), CLUT_InfoInActive);
 
-    if(editID == NULL)
+    if(editID == 0)
         tInfo_write_content_without_Id();
     else
     {