]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: session: remove event_accept() which was not used anymore
authorGodbach <nylzhaowei@gmail.com>
Thu, 20 Jun 2013 05:28:38 +0000 (13:28 +0800)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Jun 2013 06:07:35 +0000 (08:07 +0200)
Remove event_accept() in include/proto/proto_http.h and use correct function
name in other two files instead of event_accept().

Signed-off-by: Godbach <nylzhaowei@gmail.com>
include/proto/proto_http.h
include/types/session.h
src/peers.c

index 24e358191d2fea09b39621e441bca21409886c97..979219e09098ad23487adf4eb939eb34ed8c0538 100644 (file)
@@ -63,7 +63,6 @@ extern char *get_http_auth_buff;
 #define HTTP_IS_TOKEN(x) (http_is_token[(unsigned char)(x)])
 #define HTTP_IS_VER_TOKEN(x) (http_is_ver_token[(unsigned char)(x)])
 
-int event_accept(int fd);
 int process_cli(struct session *t);
 int process_srv_data(struct session *t);
 int process_srv_conn(struct session *t);
index 00ed4cb63d3d719b757fc706029773d209c37f57..42d37dbedfbb9b21c17eec1a7c6157ae283bd890 100644 (file)
@@ -97,7 +97,7 @@
 #define SN_BE_TRACK_ANY 0x00E00000      /* union of all SN_BE_TRACK_* above */
 
 
-/* WARNING: if new fields are added, they must be initialized in event_accept()
+/* WARNING: if new fields are added, they must be initialized in session_accept()
  * and freed in session_free() !
  */
 
index 998e61daca8cd0dfb12f060d904892ff787aef0f..83781ba3c1e392f83f4e8a63ba2b2d67cb20ed9f 100644 (file)
@@ -1094,7 +1094,7 @@ static struct session *peer_session_create(struct peer *peer, struct peer_sessio
        struct task *t;
 
        if ((s = pool_alloc2(pool2_session)) == NULL) { /* disable this proxy for a while */
-               Alert("out of memory in event_accept().\n");
+               Alert("out of memory in peer_session_create().\n");
                goto out_close;
        }
 
@@ -1113,7 +1113,7 @@ static struct session *peer_session_create(struct peer *peer, struct peer_sessio
         * it as soon as possible, which means closing it immediately for TCP.
         */
        if ((t = task_new()) == NULL) { /* disable this proxy for a while */
-               Alert("out of memory in event_accept().\n");
+               Alert("out of memory in peer_session_create().\n");
                goto out_free_session;
        }