Parcourir la source

[1593] a couple of style fixes

JINMEI Tatuya il y a 13 ans
Parent
commit
fddc9d07af
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      src/bin/sockcreator/sockcreator.cc

+ 4 - 2
src/bin/sockcreator/sockcreator.cc

@@ -60,7 +60,8 @@ protocolError(const int fd, const char reason = 'I') {
 
 // Return appropriate socket type constant for the socket type requested.
 // The output_fd argument is required to report a protocol error.
-int getSocketType(const char type_code, const int output_fd) {
+int
+getSocketType(const char type_code, const int output_fd) {
     int socket_type = 0;
     switch (type_code) {
         case 'T':
@@ -79,7 +80,8 @@ int getSocketType(const char type_code, const int output_fd) {
 
 // Convert return status from getSock() to a character to be sent back to
 // the caller.
-char getErrorCode(const int status) {
+char
+getErrorCode(const int status) {
     char error_code = ' ';
     switch (status) {
         case -1: