Skip to content

Commit

Permalink
Remove unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Feb 24, 2021
1 parent e406a2c commit b419bfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion lib/nghttp2_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ int nghttp2_map_each(nghttp2_map *map,

void nghttp2_map_entry_init(nghttp2_map_entry *entry, key_type key) {
entry->key = key;
entry->next = NULL;
}

/* FNV1a hash */
Expand Down
11 changes: 5 additions & 6 deletions lib/nghttp2_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@
typedef int32_t key_type;

typedef struct nghttp2_map_entry {
struct nghttp2_map_entry *next;
key_type key;
#if SIZEOF_INT_P == 4
/* we requires 8 bytes aligment */
int64_t pad;
#endif
union {
key_type key;
/* we requires 8 bytes aligment */
int64_t pad;
};
} nghttp2_map_entry;

typedef struct nghttp2_map_bucket {
Expand Down

0 comments on commit b419bfd

Please sign in to comment.