Skip to content

Cellular: Fix astyle #9569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions UNITTESTS/stubs/CellularContext_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ class CellularContext_stub : public CellularContext {
return true;
};

NetworkStack * get_stack()
NetworkStack *get_stack()
{
return NULL;
};

const char * get_ip_address()
const char *get_ip_address()
{
return NULL;
};
Expand All @@ -120,7 +120,7 @@ class CellularContext_stub : public CellularContext {
};

nsapi_error_t connect(const char *sim_pin, const char *apn, const char *uname,
const char *pwd)
const char *pwd)
{
return NSAPI_ERROR_OK;
};
Expand All @@ -130,12 +130,12 @@ class CellularContext_stub : public CellularContext {

};

const char * get_netmask()
const char *get_netmask()
{
return NULL;
};

const char * get_gateway()
const char *get_gateway()
{
return NULL;
};
Expand Down
4 changes: 2 additions & 2 deletions UNITTESTS/stubs/ControlPlane_netif_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ class ControlPlane_netif_stub : public ControlPlane_netif {

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;
}
return return_value;
};

virtual void data_received(){};
virtual void data_received() {};

virtual void attach(void (*callback)(void *), void *data) {};
};
Expand Down
2 changes: 1 addition & 1 deletion UNITTESTS/target_h/myCellularDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class myCellularDevice : public CellularDevice {
}

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;
}
Expand Down
4 changes: 2 additions & 2 deletions features/netsocket/cellular/CellularNonIPSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down