]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdcap: use static const instead of #define
authorSage Weil <sage@inktank.com>
Wed, 13 Jun 2012 20:42:36 +0000 (13:42 -0700)
committerSage Weil <sage@inktank.com>
Wed, 13 Jun 2012 20:42:36 +0000 (13:42 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSDCap.h

index 4bb53fc8fcbae5a53227e2d34c647f1f9e63f543..8a81be39e37c9513d87b767ddecde54ff058b347 100644 (file)
@@ -30,12 +30,10 @@ using std::ostream;
 
 #include "include/types.h"
 
-
-#define OSD_CAP_R 0x01
-#define OSD_CAP_W 0x02
-#define OSD_CAP_X 0x04
-#define OSD_CAP_ANY 0xff
-#define OSD_CAP_ALL (OSD_CAP_R | OSD_CAP_W | OSD_CAP_X)
+static const __u8 OSD_CAP_R = 0x01;      // read
+static const __u8 OSD_CAP_W = 0x02;      // write
+static const __u8 OSD_CAP_X = 0x04;      // (class) execute
+static const __u8 OSD_CAP_ANY = 0xff;    // *
 
 typedef __u8 rwxa_t;