Fix gcc4 build.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29912 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2009-04-04 22:42:26 +00:00
parent c06e28719b
commit 37fbed721c

View File

@ -279,15 +279,15 @@ PoorManWindow::MessageReceived(BMessage* message)
if(message->FindData("time_t", B_TIME_TYPE, &pointer, &size) != B_OK)
time = -1;
else
time = *static_cast<time_t*>(pointer);
time = *static_cast<const time_t*>(pointer);
if(message->FindData("in_addr_t", B_ANY_TYPE, &pointer, &size) != B_OK)
address = INADDR_NONE;
else
address = *static_cast<in_addr_t*>(pointer);
address = *static_cast<const in_addr_t*>(pointer);
if(message->FindData("rgb_color", B_RGB_COLOR_TYPE, &pointer, &size) != B_OK)
color = BLACK;
else
color = *static_cast<rgb_color*>(pointer);
color = *static_cast<const rgb_color*>(pointer);
if(time != -1){
char timeString[26];