diff options
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/commands/async.c | 6 | ||||
-rw-r--r-- | src/backend/utils/resowner/resowner.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c index d0891e3f0e0..ab4c72762d8 100644 --- a/src/backend/commands/async.c +++ b/src/backend/commands/async.c @@ -396,10 +396,10 @@ typedef struct NotificationList #define MIN_HASHABLE_NOTIFIES 16 /* threshold to build hashtab */ -typedef struct NotificationHash +struct NotificationHash { Notification *event; /* => the actual Notification struct */ -} NotificationHash; +}; static NotificationList *pendingNotifies = NULL; @@ -2299,7 +2299,7 @@ AddEventToPendingNotifies(Notification *n) /* Create the hash table */ hash_ctl.keysize = sizeof(Notification *); - hash_ctl.entrysize = sizeof(NotificationHash); + hash_ctl.entrysize = sizeof(struct NotificationHash); hash_ctl.hash = notification_hash; hash_ctl.match = notification_match; hash_ctl.hcxt = CurTransactionContext; diff --git a/src/backend/utils/resowner/resowner.c b/src/backend/utils/resowner/resowner.c index ab9343bc5cf..505534ee8d3 100644 --- a/src/backend/utils/resowner/resowner.c +++ b/src/backend/utils/resowner/resowner.c @@ -107,7 +107,7 @@ StaticAssertDecl(RESOWNER_HASH_MAX_ITEMS(RESOWNER_HASH_INIT_SIZE) >= RESOWNER_AR /* * ResourceOwner objects look like this */ -typedef struct ResourceOwnerData +struct ResourceOwnerData { ResourceOwner parent; /* NULL if no parent (toplevel owner) */ ResourceOwner firstchild; /* head of linked list of children */ @@ -155,7 +155,7 @@ typedef struct ResourceOwnerData /* The local locks cache. */ LOCALLOCK *locks[MAX_RESOWNER_LOCKS]; /* list of owned locks */ -} ResourceOwnerData; +}; /***************************************************************************** @@ -415,7 +415,7 @@ ResourceOwnerCreate(ResourceOwner parent, const char *name) ResourceOwner owner; owner = (ResourceOwner) MemoryContextAllocZero(TopMemoryContext, - sizeof(ResourceOwnerData)); + sizeof(struct ResourceOwnerData)); owner->name = name; if (parent) |