Don't pass unused args to printf (#311)

The final print does not print any content, only the byte-offset of the
end-block, which makes the A, B params unused. From gcc:

    bd.c:77:17: warning: too many arguments for format [-Wformat-extra-args]
        if (o) printf("%08x\n", o, A, B);
This commit is contained in:
Jørgen Kvalsvik 2021-11-13 10:10:45 +01:00 committed by GitHub
parent 777d08a839
commit 206091617a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,6 +77,6 @@ int main(int argc, char *argv[]) {
}
o += n;
}
if (o) printf("%08x\n", o, A, B);
if (o) printf("%08x\n", o);
return !feof(f);
}