Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
fddc9d07
Commit
fddc9d07
authored
Feb 16, 2012
by
JINMEI Tatuya
Browse files
[1593] a couple of style fixes
parent
955d8f31
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/sockcreator/sockcreator.cc
View file @
fddc9d07
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment