#include <unistd.h>
}
-#include <ostream>
+#include <iostream>
#include <sstream>
#include <string>
const string FRAME_ID_OPT("id");
const string FRAME_TEXT_OPT("text");
-static bool diag = true;
+static bool file_diag = true;
static enum { PRINT_BOTH, PRINT_FILE, PRINT_MATCH, PRINT_NONE,
PRINT_DEFAULT } print = PRINT_DEFAULT;
static enum { GREP_BOTH, GREP_ID, GREP_TEXT } grep_frame = GREP_BOTH;
print = PRINT_NONE;
break;
case 's':
- diag = false;
+ file_diag = false;
break;
case 'Q':
if (optarg == FRAME_ID_OPT) {
char *fn = *argv;
TagLib::MPEG::File f(fn);
if (!f.isValid()) {
- if (diag) {
+ if (file_diag) {
cerr << "failed to open " << fn << endl;
}
bad_files++;