add missing include
[awesomized/libmemcached] / src / bin / memping.cc
index 184647b20f6e1562cab7b1be0d2e4bce5d74cd1d..902954c7882f988d6daa3e64727dcdc9903b5416 100644 (file)
@@ -116,26 +116,37 @@ void options_parse(int argc, char *argv[]) {
       break;
 
     switch (option_rv) {
-    case 0: break;
+    case 0:
+      break;
 
-    case OPT_BINARY: opt_binary = true; break;
+    case OPT_BINARY:
+      opt_binary = true;
+      break;
 
-    case OPT_VERBOSE: /* --verbose or -v */ opt_verbose = OPT_VERBOSE; break;
+    case OPT_VERBOSE: /* --verbose or -v */
+      opt_verbose = OPT_VERBOSE;
+      break;
 
-    case OPT_DEBUG: /* --debug or -d */ opt_verbose = OPT_DEBUG; break;
+    case OPT_DEBUG: /* --debug or -d */
+      opt_verbose = OPT_DEBUG;
+      break;
 
-    case OPT_VERSION: /* --version or -V */ version_command(PROGRAM_NAME); break;
+    case OPT_VERSION: /* --version or -V */
+      version_command(PROGRAM_NAME);
+      break;
 
     case OPT_HELP: /* --help or -h */
       help_command(PROGRAM_NAME, PROGRAM_DESCRIPTION, long_options, help_options);
       break;
 
-    case OPT_SERVERS: /* --servers or -s */ opt_servers = strdup(optarg); break;
+    case OPT_SERVERS: /* --servers or -s */
+      opt_servers = strdup(optarg);
+      break;
 
     case OPT_EXPIRE: /* --expire */
       errno = 0;
       opt_expire = time_t(strtoll(optarg, (char **) NULL, 10));
-      if (errno != 0) {
+      if (errno) {
         std::cerr << "Incorrect value passed to --expire: `" << optarg << "`" << std::endl;
         exit(EXIT_FAILURE);
       }
@@ -146,14 +157,19 @@ void options_parse(int argc, char *argv[]) {
       opt_binary = true;
       break;
 
-    case OPT_PASSWD: opt_passwd = optarg; break;
+    case OPT_PASSWD:
+      opt_passwd = optarg;
+      break;
 
-    case OPT_QUIET: close_stdio(); break;
+    case OPT_QUIET:
+      close_stdio();
+      break;
 
     case '?':
       /* getopt_long already printed an error message. */
       exit(1);
-    default: abort();
+    default:
+      abort();
     }
   }