不定式用作目的状语抑或定语?

有一读者问高中英语课本中的这样两个句子:

(1)In some places little is done to make the smoke clean before it goes into the air.

(2)In many countries, laws have been passed to prevent factories from sending out poisonous gases and polluted water.

教学参考书上把这两个句子中的不定式看做是修饰动词的目的状语,但有的学生把它们看做定语。如果把这个句子变成主动语态,说不定式作定语用似乎也有些道理。请释疑。

第一句中的不定式似乎不能用作定语修饰否定词little,如将little换作否定词nothing, 即可看得更为清楚。第二句中的不定式,孤立地看,好像是一种两可状况,但从上下文来看,似乎将to prevent作为“以防止……”解较为妥当,故应是目的状语。