summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2014-05-15 16:36:20 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2014-05-15 17:06:48 +0200
commit2fb69e98130da6f74c12dd8c3b595c960a821995 (patch)
treeb382e13f50d958cb021832c526e04215861bb900
parent87b63c2a6813d7024aa9fc48dfd5d4677462b383 (diff)
downloadceph-libs3-2fb69e98130da6f74c12dd8c3b595c960a821995.tar.gz
util.h: fix MAX_URI_SIZE sizeof usage
Fix for : inc/request.h:131:14: error: sizeof on pointer operation will return size of 'char *' instead of 'char [9]' [-Werror,-Wsizeof-array-decay] Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r--inc/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/util.h b/inc/util.h
index 4138ca7..94ed0e7 100644
--- a/inc/util.h
+++ b/inc/util.h
@@ -58,7 +58,7 @@
// 255 is the maximum bucket length
#define MAX_URI_SIZE \
((sizeof("https:///") - 1) + S3_MAX_HOSTNAME_SIZE + 255 + 1 + \
- MAX_URLENCODED_KEY_SIZE + (sizeof("?torrent" - 1)) + 1)
+ MAX_URLENCODED_KEY_SIZE + (sizeof("?torrent") - 1) + 1)
// Maximum size of a canonicalized resource
#define MAX_CANONICALIZED_RESOURCE_SIZE \