projects
/
srvx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compilation warnings from gcc 4.6.
[srvx.git]
/
src
/
ioset.c
diff --git
a/src/ioset.c
b/src/ioset.c
index 04cae40524e53a4f423b7d56cb117fcfcf25dccb..33622af1c55e39f19a298a2702444163d875b074 100644
(file)
--- a/
src/ioset.c
+++ b/
src/ioset.c
@@
-439,7
+439,7
@@
ioset_find_line_length(struct io_fd *fd) {
static void
ioset_buffered_read(struct io_fd *fd) {
static void
ioset_buffered_read(struct io_fd *fd) {
- int put_avail, nbr
, fdnum
;
+ int put_avail, nbr;
if (!(put_avail = ioq_put_avail(&fd->recv)))
put_avail = ioq_grow(&fd->recv);
if (!(put_avail = ioq_put_avail(&fd->recv)))
put_avail = ioq_grow(&fd->recv);
@@
-474,7
+474,6
@@
ioset_buffered_read(struct io_fd *fd) {
fd->recv.put += nbr;
if (fd->recv.put == fd->recv.size)
fd->recv.put = 0;
fd->recv.put += nbr;
if (fd->recv.put == fd->recv.size)
fd->recv.put = 0;
- fdnum = fd->fd;
while (fd->line_len > 0) {
struct io_fd *old_active;
int died = 0;
while (fd->line_len > 0) {
struct io_fd *old_active;
int died = 0;