mirror of
https://github.com/postgres/postgres.git
synced 2025-11-01 21:31:19 +03:00
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.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.110 2003/12/21 01:23:06 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.111 2004/01/07 18:56:24 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1186,7 +1186,7 @@ _bt_insert_parent(Relation rel,
|
||||
{
|
||||
Buffer rootbuf;
|
||||
|
||||
Assert(stack == (BTStack) NULL);
|
||||
Assert(stack == NULL);
|
||||
Assert(is_only);
|
||||
/* create a new root node and update the metapage */
|
||||
rootbuf = _bt_newroot(rel, buf, rbuf);
|
||||
@@ -1206,7 +1206,7 @@ _bt_insert_parent(Relation rel,
|
||||
BTItem ritem;
|
||||
Buffer pbuf;
|
||||
|
||||
if (stack == (BTStack) NULL)
|
||||
if (stack == NULL)
|
||||
{
|
||||
BTPageOpaque lpageop;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user