mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +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:
@ -10,7 +10,7 @@
|
||||
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.88 2003/12/20 18:45:49 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.89 2004/01/07 18:56:29 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -173,7 +173,7 @@ pg_krb4_authname(char *PQerrormsg)
|
||||
snprintf(PQerrormsg, PQERRORMSG_LENGTH,
|
||||
"pg_krb4_authname: krb_get_tf_fullname: %s\n",
|
||||
krb_err_txt[status]);
|
||||
return (char *) NULL;
|
||||
return NULL;
|
||||
}
|
||||
return name;
|
||||
}
|
||||
@ -220,8 +220,8 @@ pg_krb4_sendauth(char *PQerrormsg, int sock,
|
||||
hostname,
|
||||
realm,
|
||||
(u_long) 0,
|
||||
(MSG_DAT *) NULL,
|
||||
(CREDENTIALS *) NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
laddr,
|
||||
raddr,
|
||||
@ -712,8 +712,8 @@ fe_getauthsvc(char *PQerrormsg)
|
||||
char *
|
||||
fe_getauthname(char *PQerrormsg)
|
||||
{
|
||||
const char *name = (char *) NULL;
|
||||
char *authn = (char *) NULL;
|
||||
const char *name = NULL;
|
||||
char *authn = NULL;
|
||||
MsgType authsvc;
|
||||
|
||||
authsvc = fe_getauthsvc(PQerrormsg);
|
||||
|
Reference in New Issue
Block a user