Skip to contentSkip to conversation

opensm/main.c: Change size parameter in setvbuf call from 0 to BUFSIZ

PATCH In review Hal Rosenstock 2 participants 2 messages Oct 17, 2011 – Nov 2, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/main.c: Change size parameter in setvbuf call from 0 to BUFSIZ

to eliminate Win8 assert as this is shared code

---
 opensm/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
opensm/main.c +1 -1
index 51c8291..f7a6d83 100644
@@ -645,7 +645,7 @@ int main(int argc, char *argv[])
 	};
 
 	/* force stdout to be line-buffered */
-	setvbuf(stdout, NULL, _IOLBF, 0);
+	setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
 
 	/* Make sure that the opensm and complib were compiled using
 	   same modes (debug/free) */
Signature · 6 lines
1.7.6.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html