Enum data type adjustment
This commit is contained in:
parent
f4ee42c9b6
commit
1c01d87277
@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
typedef enum Event_Type
|
typedef enum Event_Type
|
||||||
{
|
{
|
||||||
|
EV_NULL = 0,
|
||||||
EV_PERF_SAMPLE,
|
EV_PERF_SAMPLE,
|
||||||
|
|
||||||
EV_HOSTNAME_LOOKUP_START,
|
EV_HOSTNAME_LOOKUP_START,
|
||||||
|
@ -70,7 +70,7 @@ object_destroy (Object *obj)
|
|||||||
{
|
{
|
||||||
Object_Type type = obj->type;
|
Object_Type type = obj->type;
|
||||||
struct free_list_el *el;
|
struct free_list_el *el;
|
||||||
Event_Type event = 0;
|
Event_Type event = EV_NULL;
|
||||||
Any_Type arg;
|
Any_Type arg;
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
@ -117,7 +117,7 @@ Object *
|
|||||||
object_new (Object_Type type)
|
object_new (Object_Type type)
|
||||||
{
|
{
|
||||||
struct free_list_el *el;
|
struct free_list_el *el;
|
||||||
Event_Type event = 0;
|
Event_Type event = EV_NULL;
|
||||||
size_t obj_size;
|
size_t obj_size;
|
||||||
Any_Type arg;
|
Any_Type arg;
|
||||||
Object *obj;
|
Object *obj;
|
||||||
|
Loading…
Reference in New Issue
Block a user