From 529d4079337a49b132a3b264cd092f4b5c418628 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 18 Apr 2018 18:52:30 +0300 Subject: Cleanup: Make local function waitFor() of static linkage Moreover, remove it from the `extern "C"` block, since extern/static is oxymoronic. Signed-off-by: Berthold Stoeger --- core/qt-ble.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp index 7353c753d..8a29bedf3 100644 --- a/core/qt-ble.cpp +++ b/core/qt-ble.cpp @@ -32,9 +32,7 @@ static int debugCounter; #define MAXIMAL_HW_CREDIT 255 #define MINIMAL_HW_CREDIT 32 -extern "C" { - -void waitFor(int ms) { +static void waitFor(int ms) { Q_ASSERT(QCoreApplication::instance()); Q_ASSERT(QThread::currentThread()); @@ -48,6 +46,8 @@ void waitFor(int ms) { } while (timer.elapsed() < ms); } +extern "C" { + void BLEObject::serviceStateChanged(QLowEnergyService::ServiceState s) { Q_UNUSED(s) -- cgit v1.2.3-70-g09d2