diff options
author | 2015-11-04 21:29:20 +0000 | |
---|---|---|
committer | 2015-11-04 21:29:20 +0000 | |
commit | b6915e4e5b0edef64ed8c2ee411c0ce32b37dfd7 (patch) | |
tree | 0ff4f17e64bcd14a411f75f32e0af98d1b17ddee /regress/lib/libpthread/socket/2a/socket2a.c | |
parent | replace setbuf with setvbuf, from Frederic Nowak (diff) | |
download | wireguard-openbsd-b6915e4e5b0edef64ed8c2ee411c0ce32b37dfd7.tar.xz wireguard-openbsd-b6915e4e5b0edef64ed8c2ee411c0ce32b37dfd7.zip |
replace setbuf with setvbuf, from Frederic Nowak
Diffstat (limited to 'regress/lib/libpthread/socket/2a/socket2a.c')
-rw-r--r-- | regress/lib/libpthread/socket/2a/socket2a.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libpthread/socket/2a/socket2a.c b/regress/lib/libpthread/socket/2a/socket2a.c index 4878a2bf16d..8c97e6a9650 100644 --- a/regress/lib/libpthread/socket/2a/socket2a.c +++ b/regress/lib/libpthread/socket/2a/socket2a.c @@ -1,4 +1,4 @@ -/* $OpenBSD: socket2a.c,v 1.4 2003/07/31 21:48:06 deraadt Exp $ */ +/* $OpenBSD: socket2a.c,v 1.5 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. @@ -100,8 +100,8 @@ main(int argc, char *argv[]) if (argc == 3 && (!strcmp(argv[1], "fork okay"))) { sleep(1); - setbuf(stdout, NULL); - setbuf(stderr, NULL); + setvbuf(stdout, NULL, _IONBF, 0); + setvbuf(stderr, NULL, _IONBF, 0); CHECKr(pthread_create(&thread, NULL, sock_connect, (void *)argv[2])); |