From 3583d5e407476b8836228c0abc52c400d74aba61 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 14 Dec 2016 18:53:10 -0800 Subject: More robust platform definition support. The idea is that someday it will be possible to just concatenate the entire set of source files into a single giant source file, for systems that want to work this way. As a result, the build system now compiles every file, although some of them will not have any definitions. --- src/core/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/socket.c') diff --git a/src/core/socket.c b/src/core/socket.c index f5904823..094f9ce0 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -110,8 +110,8 @@ nni_socket_close(nni_socket_t sock) */ /* XXX: close remaining pipes */ - while ((pipe = nni_list_first(&sock->nn_pipes)) != NULL) { - nni_list_remove(&sock->nn_pipes, pipe); + while ((pipe = nni_list_first(&sock->s_pipes)) != NULL) { + nni_list_remove(&sock->s_pipes, pipe); /* XXX: call nni_pipe_close, then nni_pipe_destroy */ } -- cgit v1.2.3-70-g09d2