]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: code style: use tabs to indent codes
authorGodbach <nylzhaowei@gmail.com>
Wed, 11 Dec 2013 11:48:57 +0000 (19:48 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Dec 2013 12:44:33 +0000 (13:44 +0100)
The original codes are indented by spaces and not aligned with the former line.
It should be a convention to indent by tabs in HAProxy.

Signed-off-by: Godbach <nylzhaowei@gmail.com>
src/cfgparse.c

index 73a08a42a185729610702a18c339ca3c276a5c56..b05bfe93a3ad33635a9aa675b3990069e11d43fe 100644 (file)
@@ -2932,12 +2932,12 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
                        }
                        else if (strcmp(args[myidx], "peers") == 0) {
                                myidx++;
-                                if (!*(args[myidx])) {
-                                        Alert("parsing [%s:%d] : stick-table: missing argument after '%s'.\n",
-                                              file, linenum, args[myidx-1]);
-                                        err_code |= ERR_ALERT | ERR_FATAL;
-                                        goto out;
-                                }
+                               if (!*(args[myidx])) {
+                                       Alert("parsing [%s:%d] : stick-table: missing argument after '%s'.\n",
+                                             file, linenum, args[myidx-1]);
+                                       err_code |= ERR_ALERT | ERR_FATAL;
+                                       goto out;
+                               }
                                curproxy->table.peers.name = strdup(args[myidx++]);
                        }
                        else if (strcmp(args[myidx], "expire") == 0) {