Skip to content

Commit 47a8f24

Browse files
author
Ari Parkkila
committed
Cellular: Fix astyle
1 parent 50b5f57 commit 47a8f24

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

UNITTESTS/stubs/CellularContext_stub.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ class CellularContext_stub : public CellularContext {
9292
return true;
9393
};
9494

95-
NetworkStack * get_stack()
95+
NetworkStack *get_stack()
9696
{
9797
return NULL;
9898
};
9999

100-
const char * get_ip_address()
100+
const char *get_ip_address()
101101
{
102102
return NULL;
103103
};
@@ -120,7 +120,7 @@ class CellularContext_stub : public CellularContext {
120120
};
121121

122122
nsapi_error_t connect(const char *sim_pin, const char *apn, const char *uname,
123-
const char *pwd)
123+
const char *pwd)
124124
{
125125
return NSAPI_ERROR_OK;
126126
};
@@ -130,12 +130,12 @@ class CellularContext_stub : public CellularContext {
130130

131131
};
132132

133-
const char * get_netmask()
133+
const char *get_netmask()
134134
{
135135
return NULL;
136136
};
137137

138-
const char * get_gateway()
138+
const char *get_gateway()
139139
{
140140
return NULL;
141141
};

UNITTESTS/stubs/ControlPlane_netif_stub.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ class ControlPlane_netif_stub : public ControlPlane_netif {
4343

4444
virtual nsapi_error_t recv(void *cpdata, nsapi_size_t cpdata_length)
4545
{
46-
if (!return_values.empty()) {
46+
if (!return_values.empty()) {
4747
nsapi_error_t ret = return_values.front();
4848
return_values.pop_front();
4949
return ret;
5050
}
5151
return return_value;
5252
};
5353

54-
virtual void data_received(){};
54+
virtual void data_received() {};
5555

5656
virtual void attach(void (*callback)(void *), void *data) {};
5757
};

UNITTESTS/target_h/myCellularDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class myCellularDevice : public CellularDevice {
5252
}
5353

5454
virtual CellularContext *create_context(UARTSerial *serial, const char *const apn, PinName dcd_pin,
55-
bool active_high, bool cp_req = false, bool nonip_req = false)
55+
bool active_high, bool cp_req = false, bool nonip_req = false)
5656
{
5757
return NULL;
5858
}

features/netsocket/cellular/CellularNonIPSocket.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,12 @@ nsapi_error_t CellularNonIPSocket::listen(int backlog)
233233
}
234234

235235
nsapi_size_or_error_t CellularNonIPSocket::sendto(const SocketAddress &address,
236-
const void *data, nsapi_size_t size)
236+
const void *data, nsapi_size_t size)
237237
{
238238
return NSAPI_ERROR_UNSUPPORTED;
239239
}
240240
nsapi_size_or_error_t CellularNonIPSocket::recvfrom(SocketAddress *address,
241-
void *data, nsapi_size_t size)
241+
void *data, nsapi_size_t size)
242242
{
243243
return NSAPI_ERROR_UNSUPPORTED;
244244
}

0 commit comments

Comments
 (0)