MEM_OUT is only used by forkless backtick processing which we do
not currently support.

Signed-off-by: Herbert Xu <[email protected]>
---

 ChangeLog    |    1 +
 src/output.c |    6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 9d2dc7c..47ba519 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
        * Handle embedded NULs correctly in printf.
        * Replace open-coded flushall in preadbuffer.
        * Add likely tag in outmem.
+       * Add ifdefs around MEM_OUT handling in outmem.
 
 2014-10-13  Eric Blake <[email protected]>
 
diff --git a/src/output.c b/src/output.c
index 3e1ae25..4d3b4c2 100644
--- a/src/output.c
+++ b/src/output.c
@@ -154,10 +154,13 @@ buffered:
        if (!bufsize) {
                ;
        } else if (dest->buf == NULL) {
+#ifdef notyet
                if (dest->fd == MEM_OUT && len > bufsize) {
                        bufsize = len;
                }
+#endif
                offset = 0;
+#ifdef notyet
                goto alloc;
        } else if (dest->fd == MEM_OUT) {
                offset = bufsize;
@@ -169,6 +172,7 @@ buffered:
                if (bufsize < offset)
                        goto err;
 alloc:
+#endif
                INTOFF;
                dest->buf = ckrealloc(dest->buf, bufsize);
                dest->bufsize = bufsize;
@@ -184,7 +188,9 @@ alloc:
                goto buffered;
 
        if ((xwrite(dest->fd, p, len))) {
+#ifdef notyet
 err:
+#endif
                dest->flags |= OUTPUT_ERR;
        }
 #endif
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to