mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-02 07:37:00 -04:00
BUILD: connection: avoid a build warning on FreeBSD with SO_USER_COOKIE
It was brough by an unneeded addition of a local variable after a test
in commit f7f53afcf ("BUILD/MEDIUM: tcp: set-mark setting support for
FreeBSD."). No backport needed.
This commit is contained in:
parent
eb01f597eb
commit
de361ad22e
1 changed files with 1 additions and 2 deletions
|
|
@ -488,8 +488,7 @@ static inline void conn_set_mark(const struct connection *conn, int mark)
|
|||
#if defined(SO_MARK)
|
||||
setsockopt(conn->handle.fd, SOL_SOCKET, SO_MARK, &mark, sizeof(mark));
|
||||
#elif defined(SO_USER_COOKIE)
|
||||
uint32_t mval = (uint32_t)mark;
|
||||
setsockopt(conn->handle.fd, SOL_SOCKET, SO_USER_COOKIE, &mval, sizeof(mval));
|
||||
setsockopt(conn->handle.fd, SOL_SOCKET, SO_USER_COOKIE, &mark, sizeof(mark));
|
||||
#elif defined(SO_RTABLE)
|
||||
setsockopt(conn->handle.fd, SOL_SOCKET, SO_RTABLE, &mark, sizeof(mark));
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue