address compiler warnings

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10078 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2004-11-21 04:08:38 +00:00
parent a8992af5b4
commit a056136c4c

View File

@ -275,7 +275,7 @@ InputServer::LoadKeymap()
if (!fChars) if (!fChars)
delete[] fChars; delete[] fChars;
fChars = new char[fCharsSize]; fChars = new char[fCharsSize];
if (file.Read(fChars, fCharsSize) != fCharsSize) if (file.Read(fChars, fCharsSize) != (signed)fCharsSize)
return B_BAD_VALUE; return B_BAD_VALUE;
return B_OK; return B_OK;
@ -1363,7 +1363,7 @@ InputServer::FilterEvents(BList *eventsToFilter)
// //
void *out_item; void *out_item;
for (int32 i = 0; NULL != (out_item = out_list.ItemAt(i) ); i++) for (int32 i = 0; NULL != (out_item = out_list.ItemAt(i) ); i++)
delete out_item; delete (BMessage*)out_item;
} else if (B_SKIP_MESSAGE == result) { } else if (B_SKIP_MESSAGE == result) {
// Use the result in out_list (if any); ignore current message. // Use the result in out_list (if any); ignore current message.
// //
@ -1377,7 +1377,7 @@ InputServer::FilterEvents(BList *eventsToFilter)
// //
void* out_item; void* out_item;
for (int32 i = 0; NULL != (out_item = out_list.ItemAt(i) ); i++) for (int32 i = 0; NULL != (out_item = out_list.ItemAt(i) ); i++)
delete out_item; delete (BMessage*)out_item;
return false; return false;
} }