ossp-pkg/sio/sio_hole.c 1.1 -> 1.2
--- sio_hole.c 2002/10/23 17:05:10 1.1
+++ sio_hole.c 2002/11/05 13:23:36 1.2
@@ -6,6 +6,7 @@
#include "sio_module.h"
typedef struct {
+ int dummy;
} private_t;
/*
@@ -78,15 +79,10 @@
static
sio_rc_t hole_input(sio_t *sio, al_t *al, void *u)
{
- size_t feed = al_bytes(al);
-
/* drop all data into the bit bucket */
- if (feed > 0) {
- al_splice(al, 0, feed, NULL, NULL);
- return SIO_DOWNSTREAM;
- }
+ al_splice(al, 0, al_bytes(al), NULL, NULL);
- return SIO_UPSTREAM;
+ return SIO_DOWNSTREAM;
}
static
|
|