Remove double typedef from monitor.h

Struct monitor was typedef'ed twice which caused compilation problems on
CentOS 6. Removing the latter definition fixes that.
This commit is contained in:
Markus Makela
2016-08-24 17:33:31 +03:00
parent e231236cee
commit 82c14498e9

View File

@ -172,7 +172,7 @@ typedef struct monitor_servers
/** /**
* Representation of the running monitor. * Representation of the running monitor.
*/ */
typedef struct monitor struct monitor
{ {
char *name; /**< The name of the monitor module */ char *name; /**< The name of the monitor module */
char *user; /*< Monitor username */ char *user; /*< Monitor username */
@ -194,7 +194,7 @@ typedef struct monitor
void *handle; /**< Handle returned from startMonitor */ void *handle; /**< Handle returned from startMonitor */
size_t interval; /**< The monitor interval */ size_t interval; /**< The monitor interval */
struct monitor *next; /**< Next monitor in the linked list */ struct monitor *next; /**< Next monitor in the linked list */
} MONITOR; };
extern MONITOR *monitor_alloc(char *, char *); extern MONITOR *monitor_alloc(char *, char *);
extern void monitor_free(MONITOR *); extern void monitor_free(MONITOR *);