]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: drop #include of int_types.h from installed headers 685/head
authorSage Weil <sage@inktank.com>
Thu, 3 Oct 2013 19:16:55 +0000 (12:16 -0700)
committerSage Weil <sage@inktank.com>
Thu, 3 Oct 2013 19:16:55 +0000 (12:16 -0700)
These are unnecessary, and breaks compilation for outside users.

Prefer inttypes.h over stdint.h.

Signed-off-by: Sage Weil <sage@inktank.com>
src/include/buffer.h
src/include/crc32c.h
src/include/rados/librados.h

index f4a2f5c32645ae947ca22f5f6554f9769d72f6ef..ffa3d6e1b9772782722ffecfee796534267cd20f 100644 (file)
@@ -14,8 +14,6 @@
 #ifndef CEPH_BUFFER_H
 #define CEPH_BUFFER_H
 
-#include "include/int_types.h"
-
 #if defined(__linux__)
 #include <stdlib.h>
 #include <linux/types.h>
@@ -46,6 +44,7 @@ void  *valloc(size_t);
 #include <malloc.h>
 #endif
 
+#include <inttypes.h>
 #include <stdint.h>
 #include <string.h>
 
@@ -420,7 +419,7 @@ public:
     ssize_t read_fd(int fd, size_t len);
     int write_file(const char *fn, int mode=0644);
     int write_fd(int fd) const;
-    __u32 crc32c(__u32 crc) const;
+    uint32_t crc32c(uint32_t crc) const;
   };
 
   /*
@@ -428,7 +427,7 @@ public:
    */
 
   class hash {
-    __u32 crc;
+    uint32_t crc;
 
   public:
     hash() : crc(0) { }
@@ -437,7 +436,7 @@ public:
       crc = bl.crc32c(crc);
     }
 
-    __u32 digest() {
+    uint32_t digest() {
       return crc;
     }
   };
index 8e22c6246361eb053f873b42f06b03584cecd6ff..49d68474d68bfce2e1fb3feb33333dae4c5af5b9 100644 (file)
@@ -1,8 +1,7 @@
 #ifndef CEPH_CRC32C_H
 #define CEPH_CRC32C_H
 
-#include "include/int_types.h"
-
+#include <inttypes.h>
 #include <string.h>
 
 typedef uint32_t (*ceph_crc32c_func_t)(uint32_t crc, unsigned char const *data, unsigned length);
index a85ef3057bc074b3efa5d803e5895de89d089ad0..515663c23356c8261d7e0b31e782751ec0556f1f 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef CEPH_LIBRADOS_H
 #define CEPH_LIBRADOS_H
 
-#include "include/int_types.h"
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -566,7 +564,7 @@ int rados_pool_create_with_auid(rados_t cluster, const char *pool_name, uint64_t
  * @returns 0 on success, negative error code on failure
  */
 int rados_pool_create_with_crush_rule(rados_t cluster, const char *pool_name,
-                                     __u8 crush_rule_num);
+                                     uint8_t crush_rule_num);
 
 /**
  * Create a pool with a specific CRUSH rule and auid
@@ -581,7 +579,7 @@ int rados_pool_create_with_crush_rule(rados_t cluster, const char *pool_name,
  * @returns 0 on success, negative error code on failure
  */
 int rados_pool_create_with_all(rados_t cluster, const char *pool_name, uint64_t auid,
-                              __u8 crush_rule_num);
+                              uint8_t crush_rule_num);
 
 /**
  * Delete a pool and all data inside it