]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: Cleanup some missed reformat
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 11 Oct 2017 13:06:02 +0000 (09:06 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 23 Oct 2017 22:09:23 +0000 (18:09 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/buffer.c

index a7c4fe4f2f77a4997245722976fcead2118416cf..191fbf875a9ee13cfd470a615ed27a899fe658d2 100644 (file)
@@ -482,12 +482,14 @@ buffer_status_t buffer_write(struct buffer *b, int fd, const void *p,
        ssize_t nbytes;
 
 #if 0
-  /* Should we attempt to drain any previously buffered data?  This could help
-     reduce latency in pushing out the data if we are stuck in a long-running
-     thread that is preventing the main select loop from calling the flush
-     thread... */
-  if (b->head && (buffer_flush_available(b, fd) == BUFFER_ERROR))
-    return BUFFER_ERROR;
+       /*
+        * Should we attempt to drain any previously buffered data?
+        * This could help reduce latency in pushing out the data if
+        * we are stuck in a long-running thread that is preventing
+        * the main select loop from calling the flush thread...
+        */
+       if (b->head && (buffer_flush_available(b, fd) == BUFFER_ERROR))
+               return BUFFER_ERROR;
 #endif
        if (b->head)
                /* Buffer is not empty, so do not attempt to write the new data.