[Libct] [PATCH] libct: remove unused server_sk
Andrey Vagin
avagin at openvz.org
Thu Oct 30 03:40:26 PDT 2014
From: Andrew Vagin <avagin at openvz.org>
---
src/include/session.h | 1 -
src/session.c | 4 ----
2 files changed, 5 deletions(-)
diff --git a/src/include/session.h b/src/include/session.h
index 32d6e29..1ba9b5f 100644
--- a/src/include/session.h
+++ b/src/include/session.h
@@ -29,7 +29,6 @@ struct libct_session {
struct local_session {
struct libct_session s;
- int server_sk;
};
static inline struct local_session *s2ls(libct_session_t s)
diff --git a/src/session.c b/src/session.c
index cf62dde..0166fc5 100644
--- a/src/session.c
+++ b/src/session.c
@@ -12,9 +12,6 @@
static void close_local_session(libct_session_t s)
{
struct local_session *l = s2ls(s);
- if (l->server_sk >= 0) {
- close(l->server_sk);
- }
xfree(l);
}
@@ -77,7 +74,6 @@ libct_session_t libct_session_open_local(void)
INIT_LIST_HEAD(&s->s.s_cts);
INIT_LIST_HEAD(&s->s.async_list);
s->s.ops = &local_session_ops;
- s->server_sk = -1;
return &s->s;
}
--
1.9.1
More information about the Libct
mailing list