From d2a209f1692d8cf0e76d05cd316264bb3bdd26d3 Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 1 Jun 2016 11:36:46 +0100 Subject: [PATCH] msg: typedef uint8_t entity_type_t ...rather than having a mixture of explicit __u8 and implicit enums/ints. Signed-off-by: John Spray --- src/msg/msg_types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msg/msg_types.h b/src/msg/msg_types.h index 3236f399d9d3..a71c95d94ff1 100644 --- a/src/msg/msg_types.h +++ b/src/msg/msg_types.h @@ -28,9 +28,11 @@ namespace ceph { extern ostream& operator<<(ostream& out, const sockaddr_storage &ss); extern ostream& operator<<(ostream& out, const sockaddr *sa); +typedef uint8_t entity_type_t; + class entity_name_t { public: - __u8 _type; + entity_type_t _type; int64_t _num; public: -- 2.47.3