@@ -434,7 +434,7 @@ static bool do_dedup(int argc, char *argv[])
434
434
435
435
// Copy current->q to l_copy
436
436
if (current -> q && !list_empty (current -> q )) {
437
- list_for_each_entry (item , current -> q , list ) {
437
+ list_for_each_entry (item , current -> q , list ) {
438
438
size_t slen ;
439
439
tmp = malloc (sizeof (element_t ));
440
440
if (!tmp )
@@ -451,7 +451,7 @@ static bool do_dedup(int argc, char *argv[])
451
451
}
452
452
// Return false if the loop does not leave properly
453
453
if (& item -> list != current -> q ) {
454
- list_for_each_entry_safe (item , tmp , & l_copy , list ) {
454
+ list_for_each_entry_safe (item , tmp , & l_copy , list ) {
455
455
free (item -> value );
456
456
free (item );
457
457
}
@@ -468,7 +468,7 @@ static bool do_dedup(int argc, char *argv[])
468
468
exception_cancel ();
469
469
470
470
if (!ok ) {
471
- list_for_each_entry_safe (item , tmp , & l_copy , list ) {
471
+ list_for_each_entry_safe (item , tmp , & l_copy , list ) {
472
472
free (item -> value );
473
473
free (item );
474
474
}
@@ -479,7 +479,7 @@ static bool do_dedup(int argc, char *argv[])
479
479
struct list_head * l_tmp = current -> q -> next ;
480
480
bool is_this_dup = false;
481
481
// Compare between new list and old one
482
- list_for_each_entry (item , & l_copy , list ) {
482
+ list_for_each_entry (item , & l_copy , list ) {
483
483
// Skip comparison with new list if the string is duplicate
484
484
bool is_next_dup =
485
485
item -> list .next != & l_copy &&
@@ -503,7 +503,7 @@ static bool do_dedup(int argc, char *argv[])
503
503
"ERROR: Duplicate strings are in queue or distinct strings are "
504
504
"not in queue" );
505
505
506
- list_for_each_entry_safe (item , tmp , & l_copy , list ) {
506
+ list_for_each_entry_safe (item , tmp , & l_copy , list ) {
507
507
free (item -> value );
508
508
free (item );
509
509
}
@@ -604,7 +604,7 @@ bool do_sort(int argc, char *argv[])
604
604
unsigned no = 0 ;
605
605
if (current && current -> size && current -> size <= MAX_NODES ) {
606
606
element_t * entry ;
607
- list_for_each_entry (entry , current -> q , list )
607
+ list_for_each_entry (entry , current -> q , list )
608
608
nodes [no ++ ] = & entry -> list ;
609
609
} else if (current && current -> size > MAX_NODES )
610
610
report (1 ,
0 commit comments