Makefile.in: Add ao_write.ggo to ggos.
[paraslash.git] / stdout.c
index eaf0f99f070ae0de81c4f34c9f8cd0a373654c3d..a2ee2aca6af8114eadf92539092bcca9bb7d0e09 100644 (file)
--- a/stdout.c
+++ b/stdout.c
@@ -1,12 +1,11 @@
 /*
- * Copyright (C) 2006-2010 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2011 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
 
 /** \file stdout.c Functions that deal with writing to stdout. */
 
-#include <dirent.h> /* readdir() */
 #include <assert.h>
 #include <stdbool.h>
 
@@ -70,7 +69,7 @@ static void stdout_post_select(struct sched *s, struct task *t)
                sz = btr_next_buffer(btrn, &buf);
                if (sz == 0)
                        break;
-               ret = write_nonblock(STDOUT_FILENO, buf, sz, 0);
+               ret = write_nonblock(STDOUT_FILENO, buf, sz);
                if (ret <= 0)
                        break;
                btr_consume(btrn, ret);