]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: typedef uint8_t entity_type_t
authorJohn Spray <john.spray@redhat.com>
Wed, 1 Jun 2016 10:36:46 +0000 (11:36 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 29 Sep 2016 16:26:49 +0000 (17:26 +0100)
...rather than having a mixture of explicit __u8
and implicit enums/ints.

Signed-off-by: John Spray <john.spray@redhat.com>
src/msg/msg_types.h

index 3236f399d9d3829c98cb4679286814d5a63a255c..a71c95d94ff14bf78c2d3f16fa7b2f41d8c7e834 100644 (file)
@@ -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: