PG_RETURN_BOOL(0) instead of return 0.
in c.h we should be using the visible structure. We should only see de-TOASTed values in this program. The old method refused to compile because the length macro was no longer an lvalue.