examples: avoid sprinkle running endlessly
authorLuis de Bethencourt <luis.bg@samsung.com>
Wed, 8 Apr 2015 14:31:39 +0000 (15:31 +0100)
committerLuis de Bethencourt <luis.bg@samsung.com>
Wed, 8 Apr 2015 14:33:39 +0000 (15:33 +0100)
commit2145586ab608be7a3d9d690c1998618955145cad
treec94352bf9e485618e89bef60c52cdcd00a8d48ed
parentfe0a9ec618225af2116b11ebbb50403ba89fb53d
examples: avoid sprinkle running endlessly

Quit sprinkle when there are no more frequencies to remove.
Also rename for readability the check for linking elements.
tests/examples/dynamic/sprinkle.c