From: Sage Weil Date: Mon, 29 Oct 2012 15:35:13 +0000 (-0700) Subject: os/chain_xattr: whitespace, constify *end X-Git-Tag: v0.55~188^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2bf6a2bfef167e381308ca265eefe0cca5cfc650;p=ceph.git os/chain_xattr: whitespace, constify *end Signed-off-by: Sage Weil --- diff --git a/src/os/chain_xattr.cc b/src/os/chain_xattr.cc index b4d5d005dc8..b391f706d8e 100644 --- a/src/os/chain_xattr.cc +++ b/src/os/chain_xattr.cc @@ -341,7 +341,7 @@ int chain_listxattr(const char *fn, char *names, size_t len) { if (r < 0) return r; - size_t total_len = r * 2; // should be enough + size_t total_len = r * 2; // should be enough char *full_buf = (char *)malloc(total_len); if (!full_buf) return -ENOMEM; @@ -351,7 +351,7 @@ int chain_listxattr(const char *fn, char *names, size_t len) { return r; char *p = full_buf; - char *end = full_buf + r; + const char *end = full_buf + r; char *dest = names; char *dest_end = names + len; @@ -388,7 +388,7 @@ int chain_flistxattr(int fd, char *names, size_t len) { return r; size_t total_len = r * 2; // should be enough - size_t total_len = r * 2; // should be enough + char *full_buf = (char *)malloc(total_len); if (!full_buf) return -ENOMEM; @@ -397,7 +397,7 @@ int chain_flistxattr(int fd, char *names, size_t len) { return r; char *p = full_buf; - char *end = full_buf + r; + const char *end = full_buf + r; char *dest = names; char *dest_end = names + len;