Skip to content

Commit

Permalink
style fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Thompson authored and geky committed Aug 4, 2019
1 parent 468d312 commit 589fbe8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,17 +696,15 @@ void multithreaded_barrage_test(int N) {
equeue_destroy(&q);
}

struct sCaQ
struct count_and_queue
{
int p;
equeue_t* q;
};

typedef struct sCaQ CountAndQueue;

void simple_breaker(void *p) {
CountAndQueue* caq = (CountAndQueue*)p;
equeue_break(caq->q);
struct count_and_queue* caq = (struct count_and_queue*)p;
equeue_break(caq->q);
usleep(10000);
caq->p++;
}
Expand All @@ -716,7 +714,7 @@ void break_request_cleared_on_timeout(void) {
int err = equeue_create(&q, 2048);
test_assert(!err);

CountAndQueue pq;
struct count_and_queue pq;
pq.p = 0;
pq.q = &q;

Expand Down

0 comments on commit 589fbe8

Please sign in to comment.