summaryrefslogtreecommitdiffstats
path: root/slirp/sbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'slirp/sbuf.c')
-rw-r--r--slirp/sbuf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/slirp/sbuf.c b/slirp/sbuf.c
index 912f235f65..51a9f0cc7d 100644
--- a/slirp/sbuf.c
+++ b/slirp/sbuf.c
@@ -5,9 +5,7 @@
* terms and conditions of the copyright.
*/
-#include "qemu/osdep.h"
#include "slirp.h"
-#include "qemu/main-loop.h"
static void sbappendsb(struct sbuf *sb, struct mbuf *m);
@@ -17,7 +15,7 @@ sbfree(struct sbuf *sb)
free(sb->sb_data);
}
-void
+bool
sbdrop(struct sbuf *sb, int num)
{
int limit = sb->sb_datalen / 2;
@@ -34,8 +32,10 @@ sbdrop(struct sbuf *sb, int num)
sb->sb_rptr -= sb->sb_datalen;
if (sb->sb_cc < limit && sb->sb_cc + num >= limit) {
- qemu_notify_event();
+ return true;
}
+
+ return false;
}
void