From a507c0e4a3c389f8502aca2aee8890d66525baab Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Thu, 5 Jul 2018 02:07:50 +0800 Subject: [PATCH] Fix compile error --- gsock.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gsock.cpp b/gsock.cpp index 63d1053..0a08226 100644 --- a/gsock.cpp +++ b/gsock.cpp @@ -1080,17 +1080,17 @@ epoll::~epoll() } int epoll::add(const vsock& v,epoll_event* event) { - event->data.fd=_vp->sfd; + event->data.fd=v._vp->sfd; return epoll_ctl(_fd,EPOLL_CTL_ADD,v._vp->sfd,event); } int epoll::mod(const vsock& v,epoll_event* event) { - event->data.fd=_vp->sfd; + event->data.fd=v._vp->sfd; return epoll_ctl(_fd,EPOLL_CTL_MOD,v._vp->sfd,event); } int epoll::del(const vsock& v,epoll_event* event) { - event->data.fd=_vp->sfd; + event->data.fd=v._vp->sfd; return epoll_ctl(_fd,EPOLL_CTL_DEL,v._vp->sfd,event); } int epoll::wait(epoll_event* events,int maxsize,int timeout)