diff options
author | Neil Conway <neilc@samurai.com> | 2005-05-11 01:26:02 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2005-05-11 01:26:02 +0000 |
commit | f38e413b209d33d70b3dbdb6fd799a59e392140c (patch) | |
tree | d3bd5b66472be4c09b2e18c60baae9789178d925 /src/backend/storage/lmgr/lock.c | |
parent | 35e16515080868e87849a6846ab1c36977157154 (diff) | |
download | postgresql-f38e413b209d33d70b3dbdb6fd799a59e392140c.tar.gz postgresql-f38e413b209d33d70b3dbdb6fd799a59e392140c.zip |
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.
Diffstat (limited to 'src/backend/storage/lmgr/lock.c')
-rw-r--r-- | src/backend/storage/lmgr/lock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 576fc205299..12790a166cc 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/lmgr/lock.c,v 1.150 2005/04/29 22:28:24 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/storage/lmgr/lock.c,v 1.151 2005/05/11 01:26:02 neilc Exp $ * * NOTES * Outside modules can create a lock table and acquire/release @@ -551,8 +551,8 @@ LockAcquire(LOCKMETHODID lockmethodid, LOCKTAG *locktag, ProcQueueInit(&(lock->waitProcs)); lock->nRequested = 0; lock->nGranted = 0; - MemSet((char *) lock->requested, 0, sizeof(int) * MAX_LOCKMODES); - MemSet((char *) lock->granted, 0, sizeof(int) * MAX_LOCKMODES); + MemSet(lock->requested, 0, sizeof(int) * MAX_LOCKMODES); + MemSet(lock->granted, 0, sizeof(int) * MAX_LOCKMODES); LOCK_PRINT("LockAcquire: new", lock, lockmode); } else |