mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
be consistent in where we call fflush
okay millert@
This commit is contained in:
parent
2731bc1144
commit
b356b55ad8
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user