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
This commit is contained in:
Wim van der Meer
2010-07-02 01:31:57 +00:00
parent 17f902d7c2
commit afa4fdf51e
+3 -3
View File
@@ -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);
}
}