summaryrefslogtreecommitdiffstats
path: root/sbc/sbcinfo.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-29 17:32:58 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-29 17:32:58 +0100
commitdc1d52cfac56e18d2942c9ee78a96f351e322b77 (patch)
treea41c27ce725153dec2ee306f8a02f89555601adc /sbc/sbcinfo.c
parentbbbb1adae92d53840ef28ec955a388d2d2bf7c0a (diff)
Add -Wno-sign-compare for the library and fix the other warnings
Diffstat (limited to 'sbc/sbcinfo.c')
-rw-r--r--sbc/sbcinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbc/sbcinfo.c b/sbc/sbcinfo.c
index 7420bfd2..339518a2 100644
--- a/sbc/sbcinfo.c
+++ b/sbc/sbcinfo.c
@@ -174,7 +174,8 @@ static int analyze_file(char *filename)
double rate;
int bitpool[SIZE], frame_len[SIZE];
int subbands, blocks, freq, mode, method;
- int n, p1, p2, fd, len, size, count, num;
+ int n, p1, p2, fd, len, size, num;
+ unsigned int count;
if (strcmp(filename, "-")) {
printf("Filename\t\t%s\n", basename(filename));
@@ -235,7 +236,7 @@ static int analyze_file(char *filename)
if (len == 0)
break;
- if (len < sizeof(hdr) || hdr.syncword != 0x9c) {
+ if (len < (int) sizeof(hdr) || hdr.syncword != 0x9c) {
fprintf(stderr, "Corrupted SBC stream "
"(len %d syncword 0x%02x)\n",
len, hdr.syncword);