[Sheepdog] [PATCH 3/9] const correctness: char units[] is really const char units[]
Steven Dake
sdake at redhat.com
Mon May 17 18:37:11 CEST 2010
This patch changes the constant units[] to const char.
Signed-off-by: Steven Dake <sdake at redhat.com>
---
collie/collie.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/collie/collie.c b/collie/collie.c
index 2e95b5b..9ea237d 100644
--- a/collie/collie.c
+++ b/collie/collie.c
@@ -77,7 +77,7 @@ static int is_current(struct sheepdog_inode *i)
static char *size_to_str(uint64_t _size, char *str, int str_size)
{
- char *units[] = {"MB", "GB", "TB", "PB", "EB", "ZB", "YB"};
+ const char *units[] = {"MB", "GB", "TB", "PB", "EB", "ZB", "YB"};
int i = 0;
double size = (double)_size;
--
1.6.2.5
More information about the sheepdog
mailing list