Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > by-pkgid > 85a9ca5cea7e5fc49a15a54845dd5c65 > files > 9

mgetty-1.1.30-10.1mdv2007.1.src.rpm

--- mgetty-1.1.30/voice/libvoice/record.c.64bit-fixes	1999-07-24 23:26:49.000000000 +0200
+++ mgetty-1.1.30/voice/libvoice/record.c	2003-09-18 12:42:35.000000000 +0200
@@ -16,6 +16,7 @@ int voice_record_file (char *name)
      int result;
      rmd_header header;
      int bits;
+     int compression, speed;
 
      lprintf(L_MESG, "recording voice file %s", name);
 
@@ -38,8 +39,12 @@ int voice_record_file (char *name)
           return(FAIL);
           }
 
-     if (voice_modem->set_compression(&cvd.rec_compression.d.i,
-      &cvd.rec_speed.d.i, &bits) != OK)
+     /* [gb] r/w values with a p_int either long or int */
+     compression = cvd.rec_compression.d.i; speed = cvd.rec_speed.d.i;
+     result = voice_modem->set_compression(&compression, &speed, &bits);
+     cvd.rec_compression.d.i = compression; cvd.rec_speed.d.i = speed;
+
+     if (result != OK)
           {
           lprintf(L_WARN, "%s: Illegal compression method 0x%04x, speed %d",
            program_name, cvd.rec_compression.d.i, cvd.rec_speed.d.i);