Fixing random GCC4 warnings. Mostly missing consts, some parentheses, some braces... Should all be harmless and not change anything.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31600 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+2
-2
@@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
void
|
||||
PrintFlag(uint32 deviceFlags, uint32 testFlag, char *yes, char *no)
|
||||
PrintFlag(uint32 deviceFlags, uint32 testFlag, const char *yes, const char *no)
|
||||
{
|
||||
printf(deviceFlags & testFlag ? yes : no);
|
||||
}
|
||||
@@ -71,7 +71,7 @@ ByteString(int64 numBlocks, int64 blockSize)
|
||||
if (blocks < 1024)
|
||||
sprintf(string, "%Ld", numBlocks * blockSize);
|
||||
else {
|
||||
char *units[] = {"K", "M", "G", NULL};
|
||||
const char *units[] = {"K", "M", "G", NULL};
|
||||
int32 i = -1;
|
||||
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user