client.c: fix fn names