diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2017-12-06 17:15:44 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2017-12-06 17:15:44 +0000 |
commit | 38e9a794b97368e30bcccf726dc07af6f3de156b (patch) | |
tree | 91f185bd03720b8c78355d418c144761fbd34f3a /usr.bin/cdio | |
parent | 4743177bce23b918f76163fa81201f1a95e89a4f (diff) |
be consistent in where we call fflush
okay millert@
Diffstat (limited to 'usr.bin/cdio')
-rw-r--r-- | usr.bin/cdio/cddb.c | 4 |
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"); |