소스 검색

libceph: use (void *) for untyped data in osd ops

Two of the fields defining osd operations are defined using (char *)
while the data they represent are really untyped, not character
strings.  Change them to have type (void *).

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Alex Elder 12 년 전
부모
커밋
2a24d1f4bd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      include/linux/ceph/osd_client.h

+ 2 - 2
include/linux/ceph/osd_client.h

@@ -184,7 +184,7 @@ struct ceph_osd_req_op {
 		} extent;
 		} extent;
 		struct {
 		struct {
 			const char *name;
 			const char *name;
-			const char  *val;
+			const void *val;
 			u32 name_len;
 			u32 name_len;
 			u32 value_len;
 			u32 value_len;
 			__u8 cmp_op;       /* CEPH_OSD_CMPXATTR_OP_* */
 			__u8 cmp_op;       /* CEPH_OSD_CMPXATTR_OP_* */
@@ -193,7 +193,7 @@ struct ceph_osd_req_op {
 		struct {
 		struct {
 			const char *class_name;
 			const char *class_name;
 			const char *method_name;
 			const char *method_name;
-			const char *indata;
+			const void *indata;
 			u32 indata_len;
 			u32 indata_len;
 			__u8 class_len;
 			__u8 class_len;
 			__u8 method_len;
 			__u8 method_len;