Skip to content

Commit 228e081

Browse files
committed
Reflect recent indention requirements
The commit c9f7b87 synchronizes with Linux kernel for consistent format style, and it is time to re-indent. Change-Id: Ic8b15b90fe48d9452aa0bc70ca7933d2ad463057
1 parent a1db6c5 commit 228e081

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

dudect/fixture.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,11 @@ static bool test_const(char *text, int mode)
170170
return result;
171171
}
172172

173-
#define DUT_FUNC_IMPL(op) \
174-
bool is_##op##_const(void) { return test_const(#op, DUT(op)); }
173+
#define DUT_FUNC_IMPL(op) \
174+
bool is_##op##_const(void) \
175+
{ \
176+
return test_const(#op, DUT(op)); \
177+
}
175178

176179
#define _(x) DUT_FUNC_IMPL(x)
177180
DUT_FUNCS

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)