Cosmetic improvements/code cleanup:
Neil Conway <neilc@samurai.com>
Cosmetic improvements/code cleanup: - replace some function signatures of the form "some_type foo()" with "some_type foo(void)" - replace a few instances of a literal 0 being used as a NULL pointer; there are more instances of this in the code, but I just fixed a few - in src/backend/utils/mb/wstrncmp.c, replace K&R style function declarations with ANSI style, remove use of 'register' keyword - remove an "extern" modifier that was applied to a function definition (rather than a declaration)
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootparse.y | modified | +3 −3 |
| src/backend/bootstrap/bootstrap.c | modified | +2 −2 |
| src/backend/utils/mb/wstrncmp.c | modified | +4 −11 |
| src/backend/utils/misc/guc.c | modified | +2 −2 |
| src/bin/initdb/initdb.c | modified | +3 −3 |
| src/bin/pg_config/pg_config.c | modified | +3 −3 |
| src/bin/pg_ctl/pg_ctl.c | modified | +2 −2 |
| src/bin/psql/common.c | modified | +2 −2 |
| src/interfaces/ecpg/preproc/descriptor.c | modified | +1 −1 |
| src/interfaces/ecpg/preproc/type.c | modified | +2 −2 |
| src/pl/plpgsql/src/pl_funcs.c | modified | +3 −3 |