From 1c01d8727730924b0364ffca1e9be4e22ee915e8 Mon Sep 17 00:00:00 2001 From: tedbullock Date: Fri, 16 Nov 2007 04:31:38 +0000 Subject: [PATCH] Enum data type adjustment --- httperf/src/localevent.h | 1 + httperf/src/object.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/httperf/src/localevent.h b/httperf/src/localevent.h index f594d0a..3b8d7b3 100755 --- a/httperf/src/localevent.h +++ b/httperf/src/localevent.h @@ -37,6 +37,7 @@ typedef enum Event_Type { + EV_NULL = 0, EV_PERF_SAMPLE, EV_HOSTNAME_LOOKUP_START, diff --git a/httperf/src/object.c b/httperf/src/object.c index 0111be8..681fa18 100755 --- a/httperf/src/object.c +++ b/httperf/src/object.c @@ -70,7 +70,7 @@ object_destroy (Object *obj) { Object_Type type = obj->type; struct free_list_el *el; - Event_Type event = 0; + Event_Type event = EV_NULL; Any_Type arg; switch (type) @@ -117,7 +117,7 @@ Object * object_new (Object_Type type) { struct free_list_el *el; - Event_Type event = 0; + Event_Type event = EV_NULL; size_t obj_size; Any_Type arg; Object *obj;