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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-04-18 18:52:30 +03:00 committed by Lubomir I. Ivanov
parent 8f4604ead8
commit 529d407933

View file

@ -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)