diff --git a/include/channel.h b/include/channel.h index 60ead40..950398f 100644 --- a/include/channel.h +++ b/include/channel.h @@ -41,7 +41,6 @@ typedef struct channel { pthread_cond_t condition; /* pthread syncronization to notify logging thread and local webserver */ pthread_t thread; /* pthread for asynchronus logging */ - pthread_status_t status; /* status of thread */ char *middleware; /* url to middleware */ char *uuid; /* unique identifier for middleware */ diff --git a/include/vzlogger.h b/include/vzlogger.h index 9514a5c..1191c42 100644 --- a/include/vzlogger.h +++ b/include/vzlogger.h @@ -35,14 +35,6 @@ #include "common.h" #include "list.h" -/* enumerations */ -typedef enum { - status_unknown, - status_running, - status_terminated, - status__cancelled -} pthread_status_t; - /** * Type for mapping channels to meters */ @@ -51,7 +43,6 @@ typedef struct map { list_t channels; pthread_t thread; - pthread_status_t status; } map_t; /* prototypes */ diff --git a/src/channel.c b/src/channel.c index 5ed8fef..4f76239 100644 --- a/src/channel.c +++ b/src/channel.c @@ -35,7 +35,6 @@ void channel_init(channel_t *ch, const char *uuid, const char *middleware, readi snprintf(ch->id, 5, "ch%i", instances++); ch->identifier = identifier; - ch->status = status_unknown; ch->uuid = strdup(uuid); ch->middleware = strdup(middleware);