From afa4fdf51e4076c38071e89ce3cca6adc5beedfc Mon Sep 17 00:00:00 2001 From: Wim van der Meer Date: Fri, 2 Jul 2010 01:31:57 +0000 Subject: [PATCH] Fixes a 'deprecated conversion from string constant to 'char*'' warning. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37330 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskusage/Common.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/diskusage/Common.cpp b/src/apps/diskusage/Common.cpp index 17d4b2ad44..57fde05e0a 100644 --- a/src/apps/diskusage/Common.cpp +++ b/src/apps/diskusage/Common.cpp @@ -6,6 +6,8 @@ * as long as it is accompanied by it's documentation and this copyright notice. * The software comes with no warranty, etc. */ + + #define ASSIGN_RESOURCES #include "Common.h" @@ -87,7 +89,6 @@ read_resources(const char* appSignature) entry.GetRef(&kHelpFileRef); } else kFoundHelpFile = false; - return r; } @@ -99,7 +100,7 @@ size_to_string(off_t byteCount, char* name) struct { off_t limit; float divisor; - char* format; + const char* format; } scale[] = { { 0x100000, 1024.0, "%.2f KB" }, { 0x40000000, 1048576.0, "%.2f MB" }, @@ -117,4 +118,3 @@ size_to_string(off_t byteCount, char* name) sprintf(name, scale[i].format, byteCount / scale[i].divisor); } } -