Which of these sentences has an infinitive phrase that functions as an adverb?

A. The firemen gave them some good safety advice to follow.
B. We tried for two hours without luck to start the campfire burning.
C. We were about to leave for the forest when we saw the fire trucks.
D. To make matter worse, a strong wind propelled the fire.