Skip to content

Commit 39447ff

Browse files
committed
Reformat 'qtest.c' for updated formatting rules
This commit prepares for upcoming modifications by reformatting 'qtest.c' according to the updated 'clang-format' rules introduced in commit 'c9f7b87'. This commit only involves formatting changes and serves as a necessary prerequisite for the next commit. Change-Id: Iea93ef0e7655c9168fb7885a6e5daf8ce58c4461
1 parent a1db6c5 commit 39447ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

qtest.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ static bool do_dedup(int argc, char *argv[])
434434

435435
// Copy current->q to l_copy
436436
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) {
438438
size_t slen;
439439
tmp = malloc(sizeof(element_t));
440440
if (!tmp)
@@ -451,7 +451,7 @@ static bool do_dedup(int argc, char *argv[])
451451
}
452452
// Return false if the loop does not leave properly
453453
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) {
455455
free(item->value);
456456
free(item);
457457
}
@@ -468,7 +468,7 @@ static bool do_dedup(int argc, char *argv[])
468468
exception_cancel();
469469

470470
if (!ok) {
471-
list_for_each_entry_safe (item, tmp, &l_copy, list) {
471+
list_for_each_entry_safe(item, tmp, &l_copy, list) {
472472
free(item->value);
473473
free(item);
474474
}
@@ -479,7 +479,7 @@ static bool do_dedup(int argc, char *argv[])
479479
struct list_head *l_tmp = current->q->next;
480480
bool is_this_dup = false;
481481
// 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) {
483483
// Skip comparison with new list if the string is duplicate
484484
bool is_next_dup =
485485
item->list.next != &l_copy &&
@@ -503,7 +503,7 @@ static bool do_dedup(int argc, char *argv[])
503503
"ERROR: Duplicate strings are in queue or distinct strings are "
504504
"not in queue");
505505

506-
list_for_each_entry_safe (item, tmp, &l_copy, list) {
506+
list_for_each_entry_safe(item, tmp, &l_copy, list) {
507507
free(item->value);
508508
free(item);
509509
}
@@ -604,7 +604,7 @@ bool do_sort(int argc, char *argv[])
604604
unsigned no = 0;
605605
if (current && current->size && current->size <= MAX_NODES) {
606606
element_t *entry;
607-
list_for_each_entry (entry, current->q, list)
607+
list_for_each_entry(entry, current->q, list)
608608
nodes[no++] = &entry->list;
609609
} else if (current && current->size > MAX_NODES)
610610
report(1,

0 commit comments

Comments
 (0)