summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2017-12-06 17:15:43 +0000
committerespie <espie@openbsd.org>2017-12-06 17:15:43 +0000
commitb356b55ad8014ed97bcedebd48e9f2df6d279b51 (patch)
treea7713754fbab7802b4d4b294b44a9184a2a43584
parentUpdate inaccurate comment: i386_has_xcrypt => amd64_has_xcrypt. (diff)
downloadwireguard-openbsd-b356b55ad8014ed97bcedebd48e9f2df6d279b51.tar.xz
wireguard-openbsd-b356b55ad8014ed97bcedebd48e9f2df6d279b51.zip
be consistent in where we call fflush
okay millert@
-rw-r--r--usr.bin/cdio/cddb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cdio/cddb.c b/usr.bin/cdio/cddb.c
index c5ae468db5a..ffde75b70da 100644
--- a/usr.bin/cdio/cddb.c
+++ b/usr.bin/cdio/cddb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cddb.c,v 1.20 2015/01/16 06:40:06 deraadt Exp $ */
+/* $OpenBSD: cddb.c,v 1.21 2017/12/06 17:15:43 espie Exp $ */
/*
* Copyright (c) 2002 Marc Espie.
*
@@ -94,6 +94,7 @@ send_query(FILE *f, int n, struct cd_toc_entry *e)
for (i = 0; i < n; i++)
fprintf(f, " %lu", entry2frames(e+i));
fprintf(f, " %lu\r\n", (entry2frames(e+n)-entry2frames(e)) /75);
+ fflush(cout);
}
#define MAXSIZE 256
@@ -285,7 +286,6 @@ cddb(const char *host_port, int n, struct cd_toc_entry *e, char *arg)
}
send_query(cout, n, e);
- fflush(cout);
line = get_answer(cin);
if (!line) {
warnx("cddb: problem in query");