Thread: pgsql-server/src backend/access/common/printtu ...

pgsql-server/src backend/access/common/printtu ...

From
neilc@svr1.postgresql.org (Neil Conway)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    neilc@svr1.postgresql.org    04/01/07 14:56:30

Modified files:
    src/backend/access/common: printtup.c
    src/backend/access/gist: gist.c gistget.c gistscan.c
    src/backend/access/hash: hash.c hashscan.c
    src/backend/access/heap: heapam.c
    src/backend/access/nbtree: nbtinsert.c nbtree.c nbtsort.c
                               nbtutils.c nbtxlog.c
    src/backend/access/rtree: rtget.c rtproc.c rtree.c rtscan.c
    src/backend/access/transam: varsup.c xact.c
    src/backend/bootstrap: bootparse.y bootstrap.c
    src/backend/catalog: index.c pg_type.c
    src/backend/commands: async.c dbcommands.c prepare.c sequence.c
                          user.c vacuum.c
    src/backend/executor: execJunk.c execMain.c execQual.c
                          execTuples.c functions.c nodeHashjoin.c
                          nodeIndexscan.c
    src/backend/nodes: readfuncs.c
    src/backend/optimizer/plan: createplan.c
    src/backend/optimizer/util: tlist.c
    src/backend/parser: gram.y parse_func.c
    src/backend/port: sysv_shmem.c
    src/backend/port/dynloader: darwin.c freebsd.c netbsd.c
                                openbsd.c qnx4.c
    src/backend/postmaster: postmaster.c
    src/backend/storage/buffer: bufmgr.c localbuf.c
    src/backend/storage/lmgr: proc.c
    src/backend/storage/smgr: md.c mm.c
    src/backend/tcop: fastpath.c
    src/backend/utils: Gen_fmgrtab.sh
    src/backend/utils/adt: arrayfuncs.c formatting.c numutils.c
                           ri_triggers.c selfuncs.c
    src/backend/utils/fmgr: dfmgr.c fmgr.c
    src/interfaces/ecpg/ecpglib: execute.c
    src/interfaces/libpgtcl: pgtcl.c pgtclCmds.c pgtclId.c
    src/interfaces/libpq: fe-auth.c fe-connect.c fe-lobj.c
    src/pl/plpgsql/src: pl_comp.c
    src/pl/plpython: plpython.c
    src/test/examples: testlibpq4.c

Log message:
    More janitorial work: remove the explicit casting of NULL literals to a
    pointer type when it is not necessary to do so.

    For future reference, casting NULL to a pointer type is only necessary
    when (a) invoking a function AND either (b) the function has no prototype
    OR (c) the function is a varargs function.