examples/filtering: fix unused variable and return value in open_input_file().