summaryrefslogtreecommitdiffstats
path: root/src/bin/sockcreator/sockcreator.cc
diff options
context:
space:
mode:
authorJINMEI Tatuya <jinmei@isc.org>2012-02-16 19:40:10 +0100
committerJINMEI Tatuya <jinmei@isc.org>2012-02-16 19:40:10 +0100
commitfddc9d07afa5e4c26f701672c9503f353b27fe69 (patch)
treee40d8290643bf9743d204251ebe3f27cbdc122f9 /src/bin/sockcreator/sockcreator.cc
parent[1593] Addressed comments from review (diff)
downloadkea-fddc9d07afa5e4c26f701672c9503f353b27fe69.tar.xz
kea-fddc9d07afa5e4c26f701672c9503f353b27fe69.zip
[1593] a couple of style fixes
Diffstat (limited to '')
-rw-r--r--src/bin/sockcreator/sockcreator.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/sockcreator/sockcreator.cc b/src/bin/sockcreator/sockcreator.cc
index 68d77fb2fa..00e0e7d9fc 100644
--- a/src/bin/sockcreator/sockcreator.cc
+++ b/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: