Skip to content

Commit dc430ef

Browse files
author
Paul Thompson
committed
style fixups
1 parent bb0d540 commit dc430ef

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

events/equeue/tests/tests.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -707,17 +707,15 @@ void multithreaded_barrage_test(int N) {
707707
equeue_destroy(&q);
708708
}
709709

710-
struct sCaQ
710+
struct count_and_queue
711711
{
712712
int p;
713713
equeue_t* q;
714714
};
715715

716-
typedef struct sCaQ CountAndQueue;
717-
718716
void simple_breaker(void *p) {
719-
CountAndQueue* caq = (CountAndQueue*)p;
720-
equeue_break(caq->q);
717+
struct count_and_queue* caq = (struct count_and_queue*)p;
718+
equeue_break(caq->q);
721719
usleep(10000);
722720
caq->p++;
723721
}
@@ -727,7 +725,7 @@ void break_request_cleared_on_timeout(void) {
727725
int err = equeue_create(&q, 2048);
728726
test_assert(!err);
729727

730-
CountAndQueue pq;
728+
struct count_and_queue pq;
731729
pq.p = 0;
732730
pq.q = &q;
733731

0 commit comments

Comments
 (0)