Commit ea7f2f6a authored by Neil Conway's avatar Neil Conway

Remove three unnecessary casts from a pointer type to char * when calling

pfree().
parent 86bcfc78
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* *
* Copyright (c) 2001-2004, PostgreSQL Global Development Group * Copyright (c) 2001-2004, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.82 2004/10/25 00:46:41 neilc Exp $ * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.83 2004/10/25 06:27:21 neilc Exp $
* ---------- * ----------
*/ */
#include "postgres.h" #include "postgres.h"
...@@ -910,7 +910,7 @@ pgstat_vacuum_tabstat(void) ...@@ -910,7 +910,7 @@ pgstat_vacuum_tabstat(void)
/* /*
* Free the dbid list. * Free the dbid list.
*/ */
pfree((char *) dbidlist); pfree(dbidlist);
/* /*
* Tell the caller how many removeable objects we found * Tell the caller how many removeable objects we found
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* procedural language * procedural language
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.63 2004/10/12 15:44:15 tgl Exp $ * $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.64 2004/10/25 06:27:21 neilc Exp $
* *
* This software is copyrighted by Jan Wieck - Hamburg. * This software is copyrighted by Jan Wieck - Hamburg.
* *
...@@ -432,8 +432,8 @@ decl_cursor_args : ...@@ -432,8 +432,8 @@ decl_cursor_args :
memcpy(ftmp, $2->fieldnames, nfields * sizeof(char *)); memcpy(ftmp, $2->fieldnames, nfields * sizeof(char *));
memcpy(vtmp, $2->varnos, nfields * sizeof(int)); memcpy(vtmp, $2->varnos, nfields * sizeof(int));
pfree((char *)($2->fieldnames)); pfree($2->fieldnames);
pfree((char *)($2->varnos)); pfree($2->varnos);
$2->fieldnames = ftmp; $2->fieldnames = ftmp;
$2->varnos = vtmp; $2->varnos = vtmp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment