Fix code style - missing spaces after 'switch','which'
and 'if' keywords.
Change-Id: I51449bdc574fa8f474974faeeb1f93d29b100c81
__LOG_msg << MESSAGE << " : " << err_str; \
__ALOG_FUN(LOG_ERR, __LOG_msg); \
} \
- } while(0)
+ } while (0)
#define ALOGM(...) __ALOG(LOG_EMERG, __VA_ARGS__) /* system is unusable */
#define ALOGA(...) __ALOG(LOG_ALERT, __VA_ARGS__) /* action must be taken immediately */
bool Socket::recv(std::string &msg) {
int size;
- if(!recv(size))
+ if (!recv(size))
return false;
std::vector<char> strData(size);
int Sock::getUnixSockType() const {
- switch(m_type) {
+ switch (m_type) {
case SRV_DGRAM:
case CLI_DGRAM:
return SOCK_DGRAM;
bool policyListen = true;
bool policyConnect = true;
- switch(m_type) {
+ switch (m_type) {
case SRV_STREAM:
policyConnect = false;
break;
return -1;
}
- switch(m_type) {
+ switch (m_type) {
default:
ALOGE("Send was called for inappropriate socket type");
return -1;
return -1;
}
- switch(m_type) {
+ switch (m_type) {
default:
ALOGE("Receive was called for inappropriate socket type");
return -1;
pollfd fd[100];
- while(1) {
+ while (1) {
int last = 0;
for (auto &e : m_sockets) {
fd[last].fd = e.first;
char privilege[4096];
pollfd fd[100];
- while(1) {
+ while (1) {
int last = 0;
for (auto &e : m_sockets) {
fd[last].fd = e.first;
}
try {
- switch(com) {
+ switch (com) {
case 0:
server();
break;