[polypaudio-commits] r641 - in /trunk/src: modules/module-alsa-sink.c modules/module-alsa-source.c polypcore/cli-text.c tests/mcalign-test.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Mar 31 00:54:25 PST 2006


Author: ossman
Date: Fri Mar 31 10:54:24 2006
New Revision: 641

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=641&root=polypaudio&view=rev
Log:
Fix some warnings caused by size_t having varying size.

Modified:
    trunk/src/modules/module-alsa-sink.c
    trunk/src/modules/module-alsa-source.c
    trunk/src/polypcore/cli-text.c
    trunk/src/tests/mcalign-test.c

Modified: trunk/src/modules/module-alsa-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-alsa-sink.c?rev=641&root=polypaudio&r1=640&r2=641&view=diff
==============================================================================
--- trunk/src/modules/module-alsa-sink.c (original)
+++ trunk/src/modules/module-alsa-sink.c Fri Mar 31 10:54:24 2006
@@ -405,7 +405,7 @@
     u->frame_size = frame_size;
     u->fragment_size = period_size;
 
-    pa_log_info(__FILE__": using %u fragments of size %u bytes.", periods, u->fragment_size);
+    pa_log_info(__FILE__": using %u fragments of size %lu bytes.", periods, (long unsigned)u->fragment_size);
 
     u->silence.memblock = pa_memblock_new(u->silence.length = u->fragment_size, c->memblock_stat);
     assert(u->silence.memblock);

Modified: trunk/src/modules/module-alsa-source.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-alsa-source.c?rev=641&root=polypaudio&r1=640&r2=641&view=diff
==============================================================================
--- trunk/src/modules/module-alsa-source.c (original)
+++ trunk/src/modules/module-alsa-source.c Fri Mar 31 10:54:24 2006
@@ -396,7 +396,7 @@
     u->frame_size = frame_size;
     u->fragment_size = period_size;
 
-    pa_log(__FILE__": using %u fragments of size %u bytes.", periods, u->fragment_size);
+    pa_log(__FILE__": using %u fragments of size %lu bytes.", periods, (long unsigned)u->fragment_size);
 
     u->memchunk.memblock = NULL;
     u->memchunk.index = u->memchunk.length = 0;

Modified: trunk/src/polypcore/cli-text.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/cli-text.c?rev=641&root=polypaudio&r1=640&r2=641&view=diff
==============================================================================
--- trunk/src/polypcore/cli-text.c (original)
+++ trunk/src/polypcore/cli-text.c Fri Mar 31 10:54:24 2006
@@ -294,7 +294,7 @@
                 "\tindex: <%u>\n"
                 "\tsample spec: <%s>\n"
                 "\tchannel map: <%s>\n"
-                "\tlength: <%u>\n"
+                "\tlength: <%lu>\n"
                 "\tduration: <%0.1fs>\n"
                 "\tvolume: <%s>\n"
                 "\tlazy: %s\n"
@@ -303,7 +303,7 @@
                 e->index,
                 ss,
                 cm,
-                e->memchunk.memblock ? e->memchunk.length : 0,
+                (long unsigned)(e->memchunk.memblock ? e->memchunk.length : 0),
                 l,
                 pa_cvolume_snprint(cv, sizeof(cv), &e->volume),
                 e->lazy ? "yes" : "no",

Modified: trunk/src/tests/mcalign-test.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/tests/mcalign-test.c?rev=641&root=polypaudio&r1=640&r2=641&view=diff
==============================================================================
--- trunk/src/tests/mcalign-test.c (original)
+++ trunk/src/tests/mcalign-test.c Fri Mar 31 10:54:24 2006
@@ -67,7 +67,7 @@
 
         c.length = r;
         pa_mcalign_push(a, &c);
-        fprintf(stderr, "Read %d bytes\n", r);
+        fprintf(stderr, "Read %ld bytes\n", (long)r);
 
         c.index += r;
 




More information about the pulseaudio-commits mailing list