baseline.c: using ternary operator

using ternary operator and added missing ret var attribution