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:
parent
fc1cf1a3d2
commit
30aaba68bc
@ -53,7 +53,8 @@ status_t
|
||||
KPPPDevice::Control(uint32 op, void *data, size_t length)
|
||||
{
|
||||
switch (op) {
|
||||
case PPPC_GET_DEVICE_INFO:
|
||||
case PPPC_GET_DEVICE_INFO:
|
||||
{
|
||||
if (length < sizeof(ppp_device_info_t) || !data)
|
||||
return B_NO_MEMORY;
|
||||
|
||||
@ -67,6 +68,7 @@ KPPPDevice::Control(uint32 op, void *data, size_t length)
|
||||
info->outputBytesCount = CountOutputBytes();
|
||||
info->isUp = IsUp();
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
return B_BAD_VALUE;
|
||||
|
Loading…
Reference in New Issue
Block a user