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 /src/pq_file.c | |
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 'src/pq_file.c')
-rw-r--r-- | src/pq_file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pq_file.c b/src/pq_file.c index 8ad26d5..22dc9cd 100644 --- a/src/pq_file.c +++ b/src/pq_file.c @@ -80,7 +80,8 @@ pq_queue_file_op(struct osmo_gapk_pq *pq, FILE *fh, unsigned int blk_len, int in item->type = in_out_n ? OSMO_GAPK_ITEM_TYPE_SOURCE : OSMO_GAPK_ITEM_TYPE_SINK; - item->cat_name = in_out_n ? "source" : "sink"; + item->cat_name = in_out_n ? + OSMO_GAPK_CAT_NAME_SOURCE : OSMO_GAPK_CAT_NAME_SINK; item->sub_name = "file"; item->len_in = in_out_n ? 0 : blk_len; |