From b6915e4e5b0edef64ed8c2ee411c0ce32b37dfd7 Mon Sep 17 00:00:00 2001 From: tedu Date: Wed, 4 Nov 2015 21:29:20 +0000 Subject: replace setbuf with setvbuf, from Frederic Nowak --- regress/lib/libpthread/socket/2/socket2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'regress/lib/libpthread/socket/2/socket2.c') diff --git a/regress/lib/libpthread/socket/2/socket2.c b/regress/lib/libpthread/socket/2/socket2.c index 78ca83da110..f379ef82b33 100644 --- a/regress/lib/libpthread/socket/2/socket2.c +++ b/regress/lib/libpthread/socket/2/socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: socket2.c,v 1.6 2005/10/30 23:59:43 fgsch Exp $ */ +/* $OpenBSD: socket2.c,v 1.7 2015/11/04 21:29:20 tedu Exp $ */ /* * Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors, * proven@mit.edu All rights reserved. @@ -177,8 +177,8 @@ main(int argc, char *argv[]) { pthread_t thread; - setbuf(stdout, NULL); - setbuf(stderr, NULL); + setvbuf(stdout, NULL, _IONBF, 0); + setvbuf(stderr, NULL, _IONBF, 0); CHECKr(pthread_create(&thread, NULL, sock_accept, (void *)0xdeadbeaf)); -- cgit v1.2.3-59-g8ed1b