From 020d1b1610e526b44f91df90fecfc5bf4129d781 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 19 Mar 2013 10:21:52 -0700 Subject: [PATCH] mon: use enum instead of static const int This way it compiles. Signed-off-by: Sage Weil --- src/mon/HealthService.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mon/HealthService.h b/src/mon/HealthService.h index a4de07a1a63f7..b62ed5991eb45 100644 --- a/src/mon/HealthService.h +++ b/src/mon/HealthService.h @@ -27,7 +27,9 @@ struct HealthService : public QuorumService { - static const int SERVICE_HEALTH_DATA = 0x01; + enum { + SERVICE_HEALTH_DATA = 0x01 + }; HealthService(Monitor *m) : QuorumService(m) { } virtual ~HealthService() { } -- 2.39.5