Fix two compiler warnings

Clang reported an uninitialized variable, ret, in ctf.c and an always-false
condition (checking if an unsigned value < 0) caused by a type mismatch in
ctf-visitor-generate-io-struct.c.