1
0
mirror of http://mpg123.de/trunk/.git synced 2025-07-30 02:01:12 +03:00

examples: fix compiler warnings

git-svn-id: svn://scm.orgis.org/mpg123/trunk@4620 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
thor
2020-03-16 07:19:54 +00:00
parent 99336c6530
commit b030c49633
4 changed files with 11 additions and 3 deletions

View File

@ -8,6 +8,7 @@
#include <mpg123.h>
#include <stdio.h>
#include <inttypes.h>
int main(int argc, char **argv)
{
@ -31,7 +32,7 @@ int main(int argc, char **argv)
mpg123_index(m, &offsets, &step, &fill);
for(i=0; i<fill;i++) {
printf("Frame number %d: file offset %d\n", i * step, offsets[i]);
printf("Frame number %"PRIiMAX": file offset %"PRIiMAX"\n", (intmax_t)(i * step), (intmax_t)offsets[i]);
}
mpg123_close(m);