diff options
author | Neil Conway <neilc@samurai.com> | 2004-01-07 18:56:30 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2004-01-07 18:56:30 +0000 |
commit | 192ad63bd765d448e91389c6ff1d75f8b18bb268 (patch) | |
tree | 85873642a16b5ac877dc443a681fe9249c210693 /src/interfaces/libpgtcl/pgtcl.c | |
parent | afca5d50dc296580925b560fff0eb75bb48f0cbe (diff) |
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.
Diffstat (limited to 'src/interfaces/libpgtcl/pgtcl.c')
-rw-r--r-- | src/interfaces/libpgtcl/pgtcl.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/interfaces/libpgtcl/pgtcl.c b/src/interfaces/libpgtcl/pgtcl.c index f6e625048c7..7c4432e9221 100644 --- a/src/interfaces/libpgtcl/pgtcl.c +++ b/src/interfaces/libpgtcl/pgtcl.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpgtcl/pgtcl.c,v 1.29 2003/11/29 19:52:11 pgsql Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpgtcl/pgtcl.c,v 1.30 2004/01/07 18:56:29 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -53,109 +53,109 @@ Pgtcl_Init(Tcl_Interp *interp) Tcl_CreateCommand(interp, "pg_conndefaults", Pg_conndefaults, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_connect", Pg_connect, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_disconnect", Pg_disconnect, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_exec", Pg_exec, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_select", Pg_select, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_result", Pg_result, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_execute", Pg_execute, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_lo_open", Pg_lo_open, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_lo_close", Pg_lo_close, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); #ifdef PGTCL_USE_TCLOBJ Tcl_CreateObjCommand(interp, "pg_lo_read", Pg_lo_read, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateObjCommand(interp, "pg_lo_write", Pg_lo_write, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); #else Tcl_CreateCommand(interp, "pg_lo_read", Pg_lo_read, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_lo_write", Pg_lo_write, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); #endif Tcl_CreateCommand(interp, "pg_lo_lseek", Pg_lo_lseek, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_lo_creat", Pg_lo_creat, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_lo_tell", Pg_lo_tell, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_lo_unlink", Pg_lo_unlink, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_lo_import", Pg_lo_import, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_lo_export", Pg_lo_export, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_listen", Pg_listen, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_CreateCommand(interp, "pg_on_connection_loss", Pg_on_connection_loss, - (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); + NULL, NULL); Tcl_PkgProvide(interp, "Pgtcl", "1.4"); |