[C] Fix warning
[C] Fix warning
[C] Add -Wall and remove old line
[C] Small refacoring of test code