output/fifo: make variables more local