aboutsummaryrefslogtreecommitdiffstats
path: root/src/pq_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pq_file.c')
-rw-r--r--src/pq_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pq_file.c b/src/pq_file.c
index f3bb9a3..73a7099 100644
--- a/src/pq_file.c
+++ b/src/pq_file.c
@@ -78,6 +78,9 @@ pq_queue_file_op(struct osmo_gapk_pq *pq, FILE *fh, unsigned int blk_len, int in
return -ENOMEM;
}
+ item->type = in_out_n ?
+ OSMO_GAPK_ITEM_TYPE_SOURCE : OSMO_GAPK_ITEM_TYPE_SINK;
+
item->len_in = in_out_n ? 0 : blk_len;
item->len_out = in_out_n ? blk_len : 0;
item->state = state;