mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +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:
@@ -106,7 +106,7 @@ main(int argc, char **argv)
|
||||
{
|
||||
fprintf(stderr, "DECLARE CURSOR command failed\n");
|
||||
PQclear(res1);
|
||||
exit_nicely(conn1, (PGconn *) NULL);
|
||||
exit_nicely(conn1, NULL);
|
||||
}
|
||||
PQclear(res1);
|
||||
|
||||
@@ -115,7 +115,7 @@ main(int argc, char **argv)
|
||||
{
|
||||
fprintf(stderr, "FETCH ALL command didn't return tuples properly\n");
|
||||
PQclear(res1);
|
||||
exit_nicely(conn1, (PGconn *) NULL);
|
||||
exit_nicely(conn1, NULL);
|
||||
}
|
||||
|
||||
/* first, print out the attribute names */
|
||||
|
||||
Reference in New Issue
Block a user