Fix warnings and errors in status.c.