Skip site navigation (1) Skip section navigation (2)

pgsql: Code cleanup: in C89, there is no point casting the first

From: neilc(at)svr1(dot)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Code cleanup: in C89, there is no point casting the first
Date: 2005-05-11 01:26:03
Message-ID: 20050511012603.288A1536F3@svr1.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Code cleanup: in C89, there is no point casting the first argument to
memset() or MemSet() to a char *. For one, memset()'s first argument is
a void *, and further void * can be implicitly coerced to/from any other
pointer type.

Modified Files:
--------------
    pgsql/src/backend/access/hash:
        hashovfl.c (r1.45 -> r1.46)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/hash/hashovfl.c.diff?r1=1.45&r2=1.46)
        hashpage.c (r1.48 -> r1.49)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/hash/hashpage.c.diff?r1=1.48&r2=1.49)
        hashutil.c (r1.41 -> r1.42)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/hash/hashutil.c.diff?r1=1.41&r2=1.42)
    pgsql/src/backend/storage/lmgr:
        lock.c (r1.150 -> r1.151)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/lmgr/lock.c.diff?r1=1.150&r2=1.151)
    pgsql/src/backend/utils/cache:
        relcache.c (r1.222 -> r1.223)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/cache/relcache.c.diff?r1=1.222&r2=1.223)
        syscache.c (r1.98 -> r1.99)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/cache/syscache.c.diff?r1=1.98&r2=1.99)
    pgsql/src/backend/utils/fmgr:
        dfmgr.c (r1.79 -> r1.80)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/fmgr/dfmgr.c.diff?r1=1.79&r2=1.80)
    pgsql/src/include:
        c.h (r1.182 -> r1.183)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/c.h.diff?r1=1.182&r2=1.183)
    pgsql/src/interfaces/libpq:
        fe-protocol2.c (r1.16 -> r1.17)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-protocol2.c.diff?r1=1.16&r2=1.17)

pgsql-committers by date

Next:From: Neil ConwayDate: 2005-05-11 01:41:41
Subject: pgsql: This patch reduces the size of the message header used by
Previous:From: Bruce MomjianDate: 2005-05-10 22:27:31
Subject: pgsql: Back out check for unreferenced files.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group