]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: cast path
authorSage Weil <sage@newdream.net>
Thu, 19 Feb 2009 22:23:38 +0000 (14:23 -0800)
committerSage Weil <sage@newdream.net>
Thu, 19 Feb 2009 22:23:38 +0000 (14:23 -0800)
path[12] will either point to freshly allocated paths (that we
later kfree) or a provided const path.

src/kernel/mds_client.c

index cc9628a9f068f05aac6cac102ae32b811cec5240..876b47e4c7a632e46a690eca7f04cc82660ca6cf 100644 (file)
@@ -967,8 +967,8 @@ static struct ceph_msg *create_request_message(struct ceph_mds_client *mdsc,
 {
        struct ceph_msg *msg;
        struct ceph_mds_request_head *head;
-       const char *path1 = req->r_path1;
-       const char *path2 = req->r_path2;
+       char *path1 = (char *)req->r_path1;
+       char *path2 = (char *)req->r_path2;
        u64 ino1 = 1, ino2 = 0;
        int pathlen1 = 0, pathlen2 = 0;
        int pathlen;