]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Fix some minor typos
authorAman Gupta <aman@tmm1.net>
Tue, 3 Apr 2012 01:57:54 +0000 (18:57 -0700)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Apr 2012 08:39:45 +0000 (10:39 +0200)
src/dumpstats.c
src/proto_tcp.c

index 2421f896a4519851a474ad0732d38f497a5e7d56..88a5285bf16f6bd825d34336a360e64c21465350 100644 (file)
@@ -826,7 +826,7 @@ static int stats_sock_parse_request(struct stream_interface *si, char *line)
                else if (strcmp(args[1], "table") == 0) {
                        stats_sock_table_request(si, args, true);
                }
-               else { /* neither "stat" nor "info" nor "sess" nor "errors" no "table" */
+               else { /* neither "stat" nor "info" nor "sess" nor "errors" nor "table" */
                        return 0;
                }
        }
@@ -1513,7 +1513,7 @@ static void cli_io_handler(struct stream_interface *si)
        if ((res->flags & BF_SHUTR) && (si->state == SI_ST_EST) && (si->applet.st0 != STAT_CLI_GETREQ)) {
                DPRINTF(stderr, "%s@%d: si to buf closed. req=%08x, res=%08x, st=%d\n",
                        __FUNCTION__, __LINE__, req->flags, res->flags, si->state);
-               /* Other size has closed, let's abort if we have no more processing to do
+               /* Other side has closed, let's abort if we have no more processing to do
                 * and nothing more to consume. This is comparable to a broken pipe, so
                 * we forward the close to the request side so that it flows upstream to
                 * the client.
index 80f1e36eb04be5fa9d977e49338ebcea2480a9ba..63241966d971d5d4d5c089054a271316c4465b68 100644 (file)
@@ -439,7 +439,7 @@ int tcp_connect_server(struct stream_interface *si)
 
        /* needs src ip/port for logging */
        if (si->flags & SI_FL_SRC_ADDR) {
-               socklen_t addrlen = sizeof(si->addr.to);
+               socklen_t addrlen = sizeof(si->addr.from);
                if (getsockname(fd, (struct sockaddr *)&si->addr.from, &addrlen) == -1) {
                        Warning("Cannot get source address for logging.\n");
                }