Fix refactor damage from missed debug-only print arg
authorTimothy J Fontaine <tjfontaine@gmail.com>
Mon, 14 Feb 2011 17:55:27 +0000 (17:55 +0000)
committerAndy Green <andy@warmcat.com>
Mon, 14 Feb 2011 17:55:27 +0000 (17:55 +0000)
Just a quick follow up there is a compile error at the moment, which I
think is resolved as the following?

Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
lib/libwebsockets.c

index 7bec324..c6477ce 100644 (file)
@@ -483,7 +483,7 @@ libwebsocket_service_fd(struct libwebsocket_context *this,
                if (pollfd->revents & (POLLERR | POLLHUP)) {
 
                        debug("Session Socket %p (fd=%d) dead\n",
-                               (void *)wsi, accept_fd);
+                               (void *)wsi, pollfd->fd);
 
                        libwebsocket_close_and_free_session(this, wsi);
                        return 1;