Added the parenthesis in the Control() switch statement again, as there is a

variable definition in this block.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20431 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-03-27 10:58:35 +00:00
parent fc1cf1a3d2
commit 30aaba68bc

View File

@ -54,6 +54,7 @@ KPPPDevice::Control(uint32 op, void *data, size_t length)
{ {
switch (op) { switch (op) {
case PPPC_GET_DEVICE_INFO: case PPPC_GET_DEVICE_INFO:
{
if (length < sizeof(ppp_device_info_t) || !data) if (length < sizeof(ppp_device_info_t) || !data)
return B_NO_MEMORY; return B_NO_MEMORY;
@ -67,6 +68,7 @@ KPPPDevice::Control(uint32 op, void *data, size_t length)
info->outputBytesCount = CountOutputBytes(); info->outputBytesCount = CountOutputBytes();
info->isUp = IsUp(); info->isUp = IsUp();
break; break;
}
default: default:
return B_BAD_VALUE; return B_BAD_VALUE;