aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/user.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2004-09-27 04:01:23 +0000
committerNeil Conway <neilc@samurai.com>2004-09-27 04:01:23 +0000
commit0ed07d49d5b5aed54da02b9dfa87856ba09af859 (patch)
tree9c3cc44ff10f2c07b5765b8c6add6382454c56a4 /src/backend/commands/user.c
parent93371ed3a5f9b056b3c5abaedef5135399f358e9 (diff)
downloadpostgresql-0ed07d49d5b5aed54da02b9dfa87856ba09af859.tar.gz
postgresql-0ed07d49d5b5aed54da02b9dfa87856ba09af859.zip
Code cleanup: don't bother casting the argument to pfree() to void *
from another pointer type. Per C89, this is unnecessary, and it is common practice throughout the rest of the tree anyway.
Diffstat (limited to 'src/backend/commands/user.c')
-rw-r--r--src/backend/commands/user.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c
index 0221fe17e18..c03800700e5 100644
--- a/src/backend/commands/user.c
+++ b/src/backend/commands/user.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.145 2004/09/16 16:58:28 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.146 2004/09/27 04:01:23 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -282,8 +282,8 @@ write_group_file(Relation grel)
errmsg("could not rename file \"%s\" to \"%s\": %m",
tempname, filename)));
- pfree((void *) tempname);
- pfree((void *) filename);
+ pfree(tempname);
+ pfree(filename);
}
@@ -412,8 +412,8 @@ write_user_file(Relation urel)
errmsg("could not rename file \"%s\" to \"%s\": %m",
tempname, filename)));
- pfree((void *) tempname);
- pfree((void *) filename);
+ pfree(tempname);
+ pfree(filename);
}