Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
fcec0e23
Commit
fcec0e23
authored
Oct 24, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use NEW() macro. Bugfixes.
Rev: src/io.c:1.15
parent
c3ff3457
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/io.c
src/io.c
+6
-5
No files found.
src/io.c
View file @
fcec0e23
...
...
@@ -343,7 +343,7 @@ static int io_iter(struct io_backend *b)
}{
struct
callout
*
p
;
struct
callout
*
next
;
for
(
p
=
io
->
callouts
;
(
p
=
next
);
)
for
(
p
=
b
->
callouts
;
(
p
=
next
);
)
{
next
=
p
->
next
;
lsh_free
(
p
);
...
...
@@ -536,7 +536,7 @@ struct connect_fd *io_connect(struct io_backend *b,
return
NULL
;
}
fd
=
xalloc
(
sizeof
(
struct
connect_
fd
)
)
;
NEW
(
fd
);
fd
->
fd
=
s
;
fd
->
callback
=
f
;
...
...
@@ -577,7 +577,7 @@ struct listen_fd *io_listen(struct io_backend *b,
return
NULL
;
}
fd
=
xalloc
(
sizeof
(
struct
connect_
fd
)
)
;
NEW
(
fd
);
fd
->
fd
=
s
;
fd
->
callback
=
callback
;
...
...
@@ -595,9 +595,10 @@ struct abstract_write *io_read_write(struct io_backend *b,
UINT32
block_size
,
struct
close_callback
*
close_callback
)
{
struct
io_fd
*
f
=
xalloc
(
sizeof
(
struct
io_fd
))
;
struct
io_fd
*
f
;
struct
write_buffer
*
buffer
=
write_buffer_alloc
(
block_size
);
NEW
(
f
);
f
->
fd
=
fd
;
f
->
close_reason
=
-
1
;
/* Invalid reason */
...
...
Write
Preview
Markdown
is supported
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