genpipe.c: fixed cast warnning