1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

Code cleanup: in C89, there is no point casting the first argument to

memset() or MemSet() to a char *. For one, memset()'s first argument is
a void *, and further void * can be implicitly coerced to/from any other
pointer type.
This commit is contained in:
Neil Conway
2005-05-11 01:26:02 +00:00
parent 35e1651508
commit f38e413b20
9 changed files with 28 additions and 28 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/cache/syscache.c,v 1.98 2005/04/14 20:03:26 tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/cache/syscache.c,v 1.99 2005/05/11 01:26:02 neilc Exp $
*
* NOTES
* These routines allow the parser/planner/executor to perform
@ -455,7 +455,7 @@ InitCatalogCache(void)
Assert(!CacheInitialized);
MemSet((char *) SysCache, 0, sizeof(SysCache));
MemSet(SysCache, 0, sizeof(SysCache));
for (cacheId = 0; cacheId < SysCacheSize; cacheId++)
{