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:
Michael Lotz
2009-07-16 02:42:03 +00:00
parent b78c74fdc4
commit 63d557f06f
30 changed files with 56 additions and 47 deletions
+2 -2
View File
@@ -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 {