summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Mick <dan.mick@inktank.com>2013-10-03 12:19:50 -0700
committerDan Mick <dan.mick@inktank.com>2013-10-03 12:19:50 -0700
commit9ab05312a67e48b02364b52d5a449c0685aa6256 (patch)
treee924c97541c8ad73dba2d25b3077114ff594383d
parent739696ef0a8c9cd38de73ff78f06d6e25a71b890 (diff)
parentafb4d83d0cdb8fce229ef4943eb6acf64403e5a8 (diff)
downloadceph-9ab05312a67e48b02364b52d5a449c0685aa6256.tar.gz
Merge pull request #685 from ceph/wip-rados-ints
librados: drop #include of int_types.h from installed headers Reviewed-by: Dan Mick <dan.mick@inktank.com>
-rw-r--r--src/include/buffer.h9
-rw-r--r--src/include/crc32c.h3
-rw-r--r--src/include/rados/librados.h6
3 files changed, 7 insertions, 11 deletions
diff --git a/src/include/buffer.h b/src/include/buffer.h
index f4a2f5c3264..ffa3d6e1b97 100644
--- a/src/include/buffer.h
+++ b/src/include/buffer.h
@@ -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;
}
};
diff --git a/src/include/crc32c.h b/src/include/crc32c.h
index 8e22c624636..49d68474d68 100644
--- a/src/include/crc32c.h
+++ b/src/include/crc32c.h
@@ -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);
diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h
index a85ef3057bc..515663c2335 100644
--- a/src/include/rados/librados.h
+++ b/src/include/rados/librados.h
@@ -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