comparison 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
comparison
equal deleted inserted replaced
164:3e3d1ebba956 166:255eedad4155
1250 else 1250 else
1251 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditInfo); 1251 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditInfo);
1252 1252
1253 create_newText_for_actual_Id(); 1253 create_newText_for_actual_Id();
1254 1254
1255 if(editID == NULL) 1255 if(editID == 0)
1256 write_content_without_Id(); 1256 write_content_without_Id();
1257 else 1257 else
1258 { 1258 {
1259 write_content_of_actual_Id(); 1259 write_content_of_actual_Id();
1260 if(!tME_stop) 1260 if(!tME_stop)
1332 1332
1333 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditFieldRegular); 1333 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditFieldRegular);
1334 1334
1335 create_newText_for_actual_Id(); 1335 create_newText_for_actual_Id();
1336 1336
1337 if(editID == NULL) 1337 if(editID == 0)
1338 write_content_without_Id(); 1338 write_content_without_Id();
1339 else 1339 else
1340 { 1340 {
1341 write_content_of_actual_Id(); 1341 write_content_of_actual_Id();
1342 if(!tME_stop) 1342 if(!tME_stop)
1364 ident[id].orgText[31] = 0; 1364 ident[id].orgText[31] = 0;
1365 ident[id].newText[31] = 0; 1365 ident[id].newText[31] = 0;
1366 1366
1367 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditButtonColor1); 1367 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditButtonColor1);
1368 1368
1369 if(editID == NULL) 1369 if(editID == 0)
1370 write_content_without_Id(); 1370 write_content_without_Id();
1371 else 1371 else
1372 { 1372 {
1373 write_content_of_actual_Id(); 1373 write_content_of_actual_Id();
1374 if(!tME_stop) 1374 if(!tME_stop)
1402 ident[id].input[0] = int1; 1402 ident[id].input[0] = int1;
1403 ident[id].input[1] = strlen(ident[id].orgText); 1403 ident[id].input[1] = strlen(ident[id].orgText);
1404 1404
1405 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditButtonColor1); 1405 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditButtonColor1);
1406 1406
1407 if(editID == NULL) 1407 if(editID == 0)
1408 write_content_without_Id(); 1408 write_content_without_Id();
1409 else 1409 else
1410 { 1410 {
1411 write_content_of_actual_Id(); 1411 write_content_of_actual_Id();
1412 if(!tME_stop) 1412 if(!tME_stop)
1461 if(!tME_stop) 1461 if(!tME_stop)
1462 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditFieldRegular); 1462 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditFieldRegular);
1463 else 1463 else
1464 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditInfo); 1464 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditInfo);
1465 1465
1466 if(editID == NULL) 1466 if(editID == 0)
1467 write_content_without_Id(); 1467 write_content_without_Id();
1468 else 1468 else
1469 { 1469 {
1470 write_content_of_actual_Id(); 1470 write_content_of_actual_Id();
1471 if(!tME_stop) 1471 if(!tME_stop)
1494 ident[id].orgText[31] = 0; 1494 ident[id].orgText[31] = 0;
1495 ident[id].newText[31] = 0; 1495 ident[id].newText[31] = 0;
1496 1496
1497 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditFieldRegular); 1497 change_CLUT_entry((CLUT_MenuEditField0 + id), CLUT_MenuEditFieldRegular);
1498 1498
1499 if(editID == NULL) 1499 if(editID == 0)
1500 write_content_without_Id(); 1500 write_content_without_Id();
1501 else 1501 else
1502 { 1502 {
1503 write_content_of_actual_Id(); 1503 write_content_of_actual_Id();
1504 if(!tME_stop) 1504 if(!tME_stop)