From 8e74b50e0f6e4b507efec97c8cc0f6fb7a91a304 Mon Sep 17 00:00:00 2001 From: Evert Rol Date: Wed, 17 Apr 2013 14:27:07 +0200 Subject: [PATCH] Fix issue #193: remove double typedef declaration. --- libImaging/QuantHash.c | 4 ++-- libImaging/QuantHeap.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libImaging/QuantHash.c b/libImaging/QuantHash.c index 58d881349..b2bdb0618 100644 --- a/libImaging/QuantHash.c +++ b/libImaging/QuantHash.c @@ -29,7 +29,7 @@ typedef struct _HashNode { HashVal_t value; } HashNode; -typedef struct _HashTable { +struct _HashTable { HashNode **table; uint32_t length; uint32_t count; @@ -38,7 +38,7 @@ typedef struct _HashTable { KeyDestroyFunc keyDestroyFunc; ValDestroyFunc valDestroyFunc; void *userData; -} HashTable; +}; #define MIN_LENGTH 11 #define RESIZE_FACTOR 3 diff --git a/libImaging/QuantHeap.c b/libImaging/QuantHeap.c index bddcf142c..20379ac59 100644 --- a/libImaging/QuantHeap.c +++ b/libImaging/QuantHeap.c @@ -23,12 +23,12 @@ #include "QuantHeap.h" -typedef struct _Heap { +struct _Heap { void **heap; int heapsize; int heapcount; HeapCmpFunc cf; -} Heap; +}; #define INITIAL_SIZE 256