tiny cleanups
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20524 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
37c50abfaf
commit
90d110b64c
@ -366,8 +366,8 @@ NetServer::MessageReceived(BMessage* message)
|
|||||||
|
|
||||||
case kRegisterStatusReplicant:
|
case kRegisterStatusReplicant:
|
||||||
{
|
{
|
||||||
message->FindMessenger("messenger", &fStatusMessenger);
|
if (message->FindMessenger("messenger", &fStatusMessenger) == B_OK)
|
||||||
_UpdateReplicantStatus();
|
_UpdateReplicantStatus();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,11 +181,11 @@ StatusReplicant::ShowConfiguration(BMessage *message)
|
|||||||
if (status != kStatusConnected && status != kStatusLinkNoConfig)
|
if (status != kStatusConnected && status != kStatusLinkNoConfig)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int sock = socket(AF_INET, SOCK_DGRAM, 0);
|
if (strlen(device) > IF_NAMESIZE)
|
||||||
if (sock < 0)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (strlen(device) > IF_NAMESIZE)
|
int sock = socket(AF_INET, SOCK_DGRAM, 0);
|
||||||
|
if (sock < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ifreq request;
|
ifreq request;
|
||||||
|
Loading…
Reference in New Issue
Block a user