summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_specsfile.c
diff options
context:
space:
mode:
authorenselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2009-03-12 07:09:01 +0000
committerenselic <enselic@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2009-03-12 07:09:01 +0000
commit7395087031dc7ee82cb8b5c1ad2acbe455ba21f7 (patch)
treed9169d916820e0173551adf4f70451ac544a2676 /recordmydesktop/src/rmd_specsfile.c
parentaf375c3728b69319d41bd2e1260aff51d6fcb3f4 (diff)
Applied patch from Kevin Lo that fixes compilation on FreeBSD by
addressing include and format string issues. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@599 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/rmd_specsfile.c')
-rw-r--r--recordmydesktop/src/rmd_specsfile.c10
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;
}
© All Rights Reserved