Commit 68644d8b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Strictly speaking it is not legal to forward declare an enum.

parent 93574472
...@@ -192,11 +192,6 @@ enum httpwhence { ...@@ -192,11 +192,6 @@ enum httpwhence {
* Ban info event types * Ban info event types
*/ */
enum baninfo {
BI_NEW,
BI_DROP
};
/* NB: remember to update http_Copy() if you add fields */ /* NB: remember to update http_Copy() if you add fields */
struct http { struct http {
unsigned magic; unsigned magic;
......
...@@ -40,6 +40,16 @@ ...@@ -40,6 +40,16 @@
#include "vqueue.h" #include "vqueue.h"
#include "vsb.h" #include "vsb.h"
/*
* Enums cannot be forward declared (any more...) so put it here
* to make everybody see it.
*/
enum baninfo {
BI_NEW,
BI_DROP
};
struct cli; struct cli;
/********************************************************************** /**********************************************************************
......
...@@ -38,7 +38,6 @@ struct busyobj; ...@@ -38,7 +38,6 @@ struct busyobj;
struct objcore; struct objcore;
struct worker; struct worker;
struct lru; struct lru;
enum baninfo;
typedef void storage_init_f(struct stevedore *, int ac, char * const *av); typedef void storage_init_f(struct stevedore *, int ac, char * const *av);
typedef void storage_open_f(const struct stevedore *); typedef void storage_open_f(const struct stevedore *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment