From eed54b197bde450c918156aa64f443ef60126ac6 Mon Sep 17 00:00:00 2001 From: Matthew Brush Date: Mon, 4 Mar 2013 16:06:12 -0800 Subject: [PATCH] Remove unnecessary forward struct declarations --- src/cfu.h | 1 - src/cfuconf.h | 1 - src/cfuhash.h | 1 - src/cfulist.h | 1 - src/cfuopt.h | 1 - src/cfustring.h | 1 - src/cfuthread_queue.h | 1 - src/cfutime.h | 1 - 8 files changed, 8 deletions(-) diff --git a/src/cfu.h b/src/cfu.h index 260cb1f..c27c1ca 100644 --- a/src/cfu.h +++ b/src/cfu.h @@ -53,7 +53,6 @@ CFU_BEGIN_DECLS typedef enum { libcfu_t_none = 0, libcfu_t_hash_table, libcfu_t_list, libcfu_t_string, libcfu_t_time, libcfu_t_conf } libcfu_type; -struct libcfu_item; typedef struct libcfu_item libcfu_item_t; extern libcfu_type cfu_get_type(void *item); diff --git a/src/cfuconf.h b/src/cfuconf.h index 7a01a01..1a61324 100644 --- a/src/cfuconf.h +++ b/src/cfuconf.h @@ -45,7 +45,6 @@ CFU_BEGIN_DECLS -struct cfuconf; typedef struct cfuconf cfuconf_t; /* Apache-style conf files contain directives and containers. diff --git a/src/cfuhash.h b/src/cfuhash.h index a151694..418f452 100644 --- a/src/cfuhash.h +++ b/src/cfuhash.h @@ -45,7 +45,6 @@ CFU_BEGIN_DECLS /* The hash table itself. */ -struct cfuhash_table; typedef struct cfuhash_table cfuhash_table_t; /* Prototype for a pointer to a hashing function. */ diff --git a/src/cfulist.h b/src/cfulist.h index 05881ec..165885b 100644 --- a/src/cfulist.h +++ b/src/cfulist.h @@ -44,7 +44,6 @@ CFU_BEGIN_DECLS /* The list itself. */ -struct cfulist; typedef struct cfulist cfulist_t; /* Function called for each element in the list when passed to diff --git a/src/cfuopt.h b/src/cfuopt.h index 8ccecfd..2dda595 100644 --- a/src/cfuopt.h +++ b/src/cfuopt.h @@ -42,7 +42,6 @@ CFU_BEGIN_DECLS -struct cfuopt_struct; typedef struct cfuopt_struct cfuopt_t; /* Returns a new options context */ diff --git a/src/cfustring.h b/src/cfustring.h index f08b014..562fea5 100644 --- a/src/cfustring.h +++ b/src/cfustring.h @@ -44,7 +44,6 @@ CFU_BEGIN_DECLS -struct cfustring; typedef struct cfustring cfustring_t; /* Returns a new String. */ diff --git a/src/cfuthread_queue.h b/src/cfuthread_queue.h index 2108faf..f9feabc 100644 --- a/src/cfuthread_queue.h +++ b/src/cfuthread_queue.h @@ -53,7 +53,6 @@ CFU_BEGIN_DECLS * cfuthread_queue_new() function. */ -struct cfuthread_queue; typedef struct cfuthread_queue cfuthread_queue_t; typedef void * (*cfuthread_queue_fn_t)(void *arg); diff --git a/src/cfutime.h b/src/cfutime.h index 3b9ac51..48fae9c 100644 --- a/src/cfutime.h +++ b/src/cfutime.h @@ -42,7 +42,6 @@ CFU_BEGIN_DECLS -struct cfutime; typedef struct cfutime cfutime_t; /* Return a new cfutime structure. */