diff options
Diffstat (limited to 'lib/Utils')
| -rw-r--r-- | lib/Utils/CrashTypesSocket.cpp | 4 | ||||
| -rw-r--r-- | lib/Utils/xfuncs.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Utils/CrashTypesSocket.cpp b/lib/Utils/CrashTypesSocket.cpp index 7c206de..f16e2a9 100644 --- a/lib/Utils/CrashTypesSocket.cpp +++ b/lib/Utils/CrashTypesSocket.cpp @@ -73,7 +73,7 @@ std::string crash_data_to_string(const map_crash_data_t& pCrashData) std::stringstream sCD; map_crash_data_t::const_iterator it_cd; sCD << "(" << pCrashData.size() << ")"; - for(it_cd = pCrashData.begin(); it_cd != pCrashData.end(); it_cd++) + for (it_cd = pCrashData.begin(); it_cd != pCrashData.end(); it_cd++) { sCD << "(" << it_cd->first.length() << ")"; sCD << it_cd->first; @@ -150,7 +150,7 @@ map_crash_data_t string_to_crash_data(const std::string& pMessage, int& len) sField = message.substr(ii, nSize); message.erase(0, ii + nSize); len += ii + nSize; - switch(nField % 4) + switch (nField % 4) { case 0: name = sField; diff --git a/lib/Utils/xfuncs.cpp b/lib/Utils/xfuncs.cpp index b1941f7..0e57639 100644 --- a/lib/Utils/xfuncs.cpp +++ b/lib/Utils/xfuncs.cpp @@ -8,12 +8,12 @@ /* Turn on nonblocking I/O on a fd */ int ndelay_on(int fd) { - return fcntl(fd, F_SETFL, fcntl(fd,F_GETFL) | O_NONBLOCK); + return fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK); } int ndelay_off(int fd) { - return fcntl(fd, F_SETFL, fcntl(fd,F_GETFL) & ~O_NONBLOCK); + return fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_NONBLOCK); } int close_on_exec_on(int fd) |
