comparison urogue/state.c @ 300:0250220d8cdd

Fix an assortment of compiler warnings. A few potential bugs were removed in the process. Much code cleanup remains to be done.
author John "Elwin" Edwards
date Fri, 22 Nov 2019 21:18:27 -0500
parents 000b1c5b8d63
children
comparison
equal deleted inserted replaced
299:74351bf23e5e 300:0250220d8cdd
571 struct linked_list *l = list; 571 struct linked_list *l = list;
572 572
573 if ( (num < 1) || (list == NULL) ) 573 if ( (num < 1) || (list == NULL) )
574 return(NULL); 574 return(NULL);
575 575
576 num--; 576 num--;
577 577
578 for(cnt = 0; cnt < num; cnt++) 578 for(cnt = 0; cnt < num; cnt++)
579 { 579 {
580 if ( l == NULL ) 580 if ( l == NULL )
581 return(NULL); 581 return(NULL);