diff options
Diffstat (limited to 'recordmydesktop/src/rmd_specsfile.c')
-rw-r--r-- | recordmydesktop/src/rmd_specsfile.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/recordmydesktop/src/rmd_specsfile.c b/recordmydesktop/src/rmd_specsfile.c index 1b25eeb..11b55dc 100644 --- a/recordmydesktop/src/rmd_specsfile.c +++ b/recordmydesktop/src/rmd_specsfile.c @@ -51,9 +51,9 @@ int rmdWriteSpecsFile(ProgData *pdata){ fprintf(fp,"NoSound = %d\n",pdata->args.nosound); fprintf(fp,"Frequency = %d\n",pdata->args.frequency); fprintf(fp,"Channels = %d\n",pdata->args.channels); - fprintf(fp,"BufferSize = %lu\n",pdata->args.buffsize); + fprintf(fp,"BufferSize = %lu\n",(unsigned long)pdata->args.buffsize); fprintf(fp,"SoundFrameSize = %d\n",pdata->sound_framesize); - fprintf(fp,"PeriodSize = %lu\n",pdata->periodsize); + fprintf(fp,"PeriodSize = %lu\n",(unsigned long)pdata->periodsize); fprintf(fp,"UsedJack = %d\n",pdata->args.use_jack); fprintf(fp,"v_bitrate = %d\n",pdata->args.v_bitrate); fprintf(fp,"v_quality = %d\n",pdata->args.v_quality); @@ -119,7 +119,8 @@ int rmdReadSpecsFile(ProgData *pdata){ fprintf(stderr,"Error reading Channels attribute!!!\n"); return 1; } - if(fscanf(fp,"BufferSize = %lu\n",&pdata->args.buffsize)!=1){ + if(fscanf(fp,"BufferSize = %lu\n", + (unsigned long *)&pdata->args.buffsize)!=1){ fprintf(stderr,"Error reading BufferSize attribute!!!\n"); return 1; } @@ -127,7 +128,8 @@ int rmdReadSpecsFile(ProgData *pdata){ fprintf(stderr,"Error reading SoundFrameSize attribute!!!\n"); return 1; } - if(fscanf(fp,"PeriodSize = %lu\n",&pdata->periodsize)!=1){ + if(fscanf(fp,"PeriodSize = %lu\n", + (unsigned long *)&pdata->periodsize)!=1){ fprintf(stderr,"Error reading PeriodSize attribute!!!\n"); return 1; } |