Merge pull request #9569 from AriParkkila/fix-astyle

Cellular: Fix astyle
pull/9568/head
Martin Kojtal 2019-02-01 08:24:23 +01:00 committed by GitHub
commit b2d30d422d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View File

@ -92,12 +92,12 @@ public:
return true;
};
NetworkStack * get_stack()
NetworkStack *get_stack()
{
return NULL;
};
const char * get_ip_address()
const char *get_ip_address()
{
return NULL;
};
@ -120,7 +120,7 @@ public:
};
nsapi_error_t connect(const char *sim_pin, const char *apn, const char *uname,
const char *pwd)
const char *pwd)
{
return NSAPI_ERROR_OK;
};
@ -130,12 +130,12 @@ public:
};
const char * get_netmask()
const char *get_netmask()
{
return NULL;
};
const char * get_gateway()
const char *get_gateway()
{
return NULL;
};

View File

@ -43,7 +43,7 @@ protected:
virtual nsapi_error_t recv(void *cpdata, nsapi_size_t cpdata_length)
{
if (!return_values.empty()) {
if (!return_values.empty()) {
nsapi_error_t ret = return_values.front();
return_values.pop_front();
return ret;
@ -51,7 +51,7 @@ protected:
return return_value;
};
virtual void data_received(){};
virtual void data_received() {};
virtual void attach(void (*callback)(void *), void *data) {};
};

View File

@ -52,7 +52,7 @@ public:
}
virtual CellularContext *create_context(UARTSerial *serial, const char *const apn, PinName dcd_pin,
bool active_high, bool cp_req = false, bool nonip_req = false)
bool active_high, bool cp_req = false, bool nonip_req = false)
{
return NULL;
}

View File

@ -233,12 +233,12 @@ nsapi_error_t CellularNonIPSocket::listen(int backlog)
}
nsapi_size_or_error_t CellularNonIPSocket::sendto(const SocketAddress &address,
const void *data, nsapi_size_t size)
const void *data, nsapi_size_t size)
{
return NSAPI_ERROR_UNSUPPORTED;
}
nsapi_size_or_error_t CellularNonIPSocket::recvfrom(SocketAddress *address,
void *data, nsapi_size_t size)
void *data, nsapi_size_t size)
{
return NSAPI_ERROR_UNSUPPORTED;
}