Commit b77d62cc authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix t_socketnotifier typedef so it includes an int arg for the fd

parent 1823664f
Pipeline #1763 passed with stage
in 269 minutes and 38 seconds
......@@ -582,7 +582,7 @@ void socketreceiver_read(t_socketreceiver *x, int fd)
if (x == sys_socketreceiver) sys_bail(1);
else
{
if (x->sr_notifier) (*x->sr_notifier)(x->sr_owner);
if (x->sr_notifier) (*x->sr_notifier)(x->sr_owner, fd);
sys_rmpollfn(fd);
sys_closesocket(fd);
}
......@@ -598,7 +598,7 @@ void socketreceiver_read(t_socketreceiver *x, int fd)
else
{
post("EOF on socket %d\n", fd);
if (x->sr_notifier) (*x->sr_notifier)(x->sr_owner);
if (x->sr_notifier) (*x->sr_notifier)(x->sr_owner, fd);
sys_rmpollfn(fd);
sys_closesocket(fd);
}
......
......@@ -199,7 +199,7 @@ EXTERN int sys_pollgui(void);
EXTERN_STRUCT _socketreceiver;
#define t_socketreceiver struct _socketreceiver
typedef void (*t_socketnotifier)(void *x);
typedef void (*t_socketnotifier)(void *x, int n);
typedef void (*t_socketreceivefn)(void *x, t_binbuf *b);
EXTERN t_socketreceiver *socketreceiver_new(void *owner,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment