From 30aaba68bcab3108d4a1873f94a101af10427672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 27 Mar 2007 10:58:35 +0000 Subject: [PATCH] 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 --- .../kernel/network/ppp/shared/libkernelppp/KPPPDevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPDevice.cpp b/src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPDevice.cpp index c4adf9c77a..62c39454bf 100644 --- a/src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPDevice.cpp +++ b/src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPDevice.cpp @@ -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;