summaryrefslogtreecommitdiff
path: root/test/pkev.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/pkev.cpp')
-rw-r--r--test/pkev.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/pkev.cpp b/test/pkev.cpp
index dd227ce..6258e02 100644
--- a/test/pkev.cpp
+++ b/test/pkev.cpp
@@ -31,10 +31,10 @@ struct ev {
bool handled;
};
-struct ev ev_one = {0};
-struct ev ev_two = {0};
+struct ev ev_one = {};
+struct ev ev_two = {};
-const pk_ev_mgr_id_T
+pk_ev_mgr_id_T
test_setup()
{
memset(&ev_one, 0, sizeof(struct ev));
@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
{
const uint64_t cb_count = PK_EV_INIT_CB_COUNT + 2;
const uint64_t ev_count = PK_EV_INIT_EV_COUNT + 2;
- struct ev evs[ev_count] = {{0}};
+ struct ev evs[ev_count] = {};
const pk_ev_mgr_id_T evmgr = test_setup();
for (i = 0; i < ev_count; ++i) {
evs[i].evmgr = evmgr;
@@ -147,7 +147,7 @@ int main(int argc, char *argv[])
{
const uint64_t cb_count = 255;
const uint64_t ev_count = 255;
- struct ev evs[ev_count] = {{0}};
+ struct ev evs[ev_count] = {};
const pk_ev_mgr_id_T evmgr = test_setup();
for (i = 0; i < ev_count; ++i) {
evs[i].evmgr = evmgr;
@@ -183,7 +183,7 @@ int main(int argc, char *argv[])
int r;
const uint64_t cb_count = 256;
const uint64_t ev_count = 1;
- struct ev evs[ev_count] = {{0}};
+ struct ev evs[ev_count] = {};
const pk_ev_mgr_id_T evmgr = test_setup();
r = setjmp(jmp_env);
@@ -222,7 +222,7 @@ int main(int argc, char *argv[])
int r;
const uint64_t cb_count = 1;
const uint64_t ev_count = 256;
- struct ev evs[ev_count] = {{0}};
+ struct ev evs[ev_count] = {};
const pk_ev_mgr_id_T evmgr = test_setup();
r = setjmp(jmp_env);