Commit 118ac4ed authored by Nils Goroll's avatar Nils Goroll

define enum before using it

exotic compilers complain about incomplete type
parent bdf2f639
......@@ -79,6 +79,11 @@ struct http_conn {
vtim_dur between_bytes_timeout;
};
enum htc_status_e {
#define HTC_STATUS(e, n, s, l) HTC_S_ ## e = n,
#include "tbl/htc.h"
};
typedef enum htc_status_e htc_complete_f(struct http_conn *);
/* -------------------------------------------------------------------*/
......@@ -382,12 +387,6 @@ enum htc_status_e HTC_RxStuff(struct http_conn *, htc_complete_f *,
#include "tbl/sess_attr.h"
void SES_Set_String_Attr(struct sess *sp, enum sess_attr a, const char *src);
enum htc_status_e {
#define HTC_STATUS(e, n, s, l) HTC_S_ ## e = n,
#include "tbl/htc.h"
};
/* cache_shmlog.c */
extern struct VSC_main *VSC_C_main;
void VSM_Init(void);
......
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