Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitea7f2f6

Browse files
author
Neil Conway
committed
Remove three unnecessary casts from a pointer type to char * when calling
pfree().
1 parent86bcfc7 commitea7f2f6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*Copyright (c) 2001-2004, PostgreSQL Global Development Group
1515
*
16-
*$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.82 2004/10/2500:46:41 neilc Exp $
16+
*$PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.83 2004/10/2506:27:21 neilc Exp $
1717
* ----------
1818
*/
1919
#include"postgres.h"
@@ -910,7 +910,7 @@ pgstat_vacuum_tabstat(void)
910910
/*
911911
* Free the dbid list.
912912
*/
913-
pfree((char*)dbidlist);
913+
pfree(dbidlist);
914914

915915
/*
916916
* Tell the caller how many removeable objects we found

‎src/pl/plpgsql/src/gram.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* procedural language
55
*
66
* IDENTIFICATION
7-
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.63 2004/10/12 15:44:15 tgl Exp $
7+
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.64 2004/10/25 06:27:21 neilc Exp $
88
*
99
* This software is copyrighted by Jan Wieck - Hamburg.
1010
*
@@ -432,8 +432,8 @@ decl_cursor_args :
432432
memcpy(ftmp, $2->fieldnames, nfields *sizeof(char *));
433433
memcpy(vtmp, $2->varnos, nfields *sizeof(int));
434434

435-
pfree((char *)($2->fieldnames));
436-
pfree((char *)($2->varnos));
435+
pfree($2->fieldnames);
436+
pfree($2->varnos);
437437

438438
$2->fieldnames = ftmp;
439439
$2->varnos = vtmp;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp