No one-line ifs
wave.c formatting