diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-01-15 00:25:44 +0600 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-01-15 00:25:44 +0600 |
commit | 6f34c8f3017629ea4865543e901b61ac893e0356 (patch) | |
tree | 6d2b2bb04c12deb839a27bba03030c28030302d2 /tests/io | |
parent | 2254861efb0216b55d04926b339220ecf9e31aa5 (diff) |
procqueue: introduce and use shared cat_name definitions
Let's use the common string representation for item category
names, defined in the shared header, instead of defining
them in every file.
Change-Id: Ie0c449d77fa383cad27f67b8ce902bd071342dbb
Diffstat (limited to 'tests/io')
-rw-r--r-- | tests/io/pq_rtp_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/io/pq_rtp_test.c b/tests/io/pq_rtp_test.c index cf6e2a6..f4070b7 100644 --- a/tests/io/pq_rtp_test.c +++ b/tests/io/pq_rtp_test.c @@ -151,7 +151,7 @@ static int init_gen_queue(struct osmo_gapk_pq *pq, /* Fill in meta information */ src_rand->type = OSMO_GAPK_ITEM_TYPE_SOURCE; - src_rand->cat_name = "source"; + src_rand->cat_name = OSMO_GAPK_CAT_NAME_SOURCE; src_rand->sub_name = "random"; /* Set I/O buffer lengths */ @@ -237,7 +237,7 @@ static int init_chk_queue(struct osmo_gapk_pq *pq, /* Fill in meta information */ sink_chk->type = OSMO_GAPK_ITEM_TYPE_SINK; - sink_chk->cat_name = "sink"; + sink_chk->cat_name = OSMO_GAPK_CAT_NAME_SINK; sink_chk->sub_name = "checker"; /* Set I/O buffer lengths */ |