Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
purr-data
Commits
b77d62cc
Commit
b77d62cc
authored
May 08, 2020
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pd/src/s_inter.c
View file @
b77d62cc
...
...
@@ -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
);
}
...
...
pd/src/s_stuff.h
View file @
b77d62cc
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment