summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2015-04-10 01:25:15 +0200
committerStefan Pöschel <github@basicmaster.de>2015-04-10 01:25:15 +0200
commitb4c6dca39988f0b695e497e9a53d8b39e586c2e2 (patch)
tree716d6aaa15ee962ceafdd2249c4dde876added90
parent268b3c310d543f9129331a9b592099b42d814188 (diff)
downloadODR-AudioEnc-b4c6dca39988f0b695e497e9a53d8b39e586c2e2.tar.gz
ODR-AudioEnc-b4c6dca39988f0b695e497e9a53d8b39e586c2e2.tar.bz2
ODR-AudioEnc-b4c6dca39988f0b695e497e9a53d8b39e586c2e2.zip
Fix printf warnings
-rw-r--r--src/dabplus-enc.cpp2
-rw-r--r--src/mot-encoder.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp
index f172c24..0fdefe4 100644
--- a/src/dabplus-enc.cpp
+++ b/src/dabplus-enc.cpp
@@ -408,7 +408,7 @@ int main(int argc, char *argv[])
die_on_silence = true;
}
else {
- fprintf(stderr, "Invalid silence timeout (%d) given!\n");
+ fprintf(stderr, "Invalid silence timeout (%d) given!\n", silence_timeout);
return 1;
}
diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp
index 9f502c1..eabca9b 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -144,7 +144,7 @@ struct fingerprint_t {
}
void disp(void) {
- printf("%s_%d_%d:%d\n", s_name.c_str(), s_size, s_mtime, fidx);
+ printf("%s_%ld_%lu:%d\n", s_name.c_str(), s_size, s_mtime, fidx);
}
void load_from_file(const char* filepath)
@@ -1309,7 +1309,7 @@ void History::disp_database()
}
else {
for (id = 0; id < m_database.size(); id++) {
- printf(" id %4d: ", id);
+ printf(" id %4zu: ", id);
m_database[id].disp();
}
}