]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: raw_sock: Use a better name for the constructor than __ssl_sock_deinit()
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 14 Aug 2017 13:59:44 +0000 (15:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Aug 2017 16:33:21 +0000 (18:33 +0200)
I just noticed the raw socket constructor was called __ssl_sock_deinit,
which is a bit confusing, and wrong twice, so the attached patch renames it
to __raw_sock_init, which seems more correct.

src/raw_sock.c

index 8aba58d7bba142c71a5911840b8e5f4487dcf35e..707ba55f36f96c4fd48407e17dd979c597e41289 100644 (file)
@@ -429,7 +429,7 @@ static struct xprt_ops raw_sock = {
 
 
 __attribute__((constructor))
-static void __ssl_sock_deinit(void)
+static void __raw_sock_init(void)
 {
        xprt_register(XPRT_RAW, &raw_sock);
 }