libceph: use (void *) for untyped data in osd ops
authorAlex Elder <elder@inktank.com>
Sat, 2 Mar 2013 00:00:15 +0000 (18:00 -0600)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:16:15 +0000 (21:16 -0700)
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>
include/linux/ceph/osd_client.h

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