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:
@@ -53,7 +53,8 @@ status_t
|
|||||||
KPPPDevice::Control(uint32 op, void *data, size_t length)
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user