mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +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/optimizer/util/tlist.c,v 1.61 2003/11/29 19:51:51 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/optimizer/util/tlist.c,v 1.62 2004/01/07 18:56:26 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -58,7 +58,7 @@ matching_tlist_expr(Node *node, List *targetlist)
|
||||
if (tlentry)
|
||||
return tlentry->expr;
|
||||
|
||||
return (Node *) NULL;
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -76,7 +76,7 @@ tlist_member(Node *node, List *targetlist)
|
||||
if (tlentry)
|
||||
return tlentry->resdom;
|
||||
|
||||
return (Resdom *) NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user