[asterisk-commits] russell: branch russell/jack r94372 - /team/russell/jack/apps/app_jack.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 20 18:45:18 CST 2007


Author: russell
Date: Thu Dec 20 18:45:18 2007
New Revision: 94372

URL: http://svn.digium.com/view/asterisk?view=rev&rev=94372
Log:
resolve some compiler warnings on 64-bit

Modified:
    team/russell/jack/apps/app_jack.c

Modified: team/russell/jack/apps/app_jack.c
URL: http://svn.digium.com/view/asterisk/team/russell/jack/apps/app_jack.c?view=diff&rev=94372&r1=94371&r2=94372
==============================================================================
--- team/russell/jack/apps/app_jack.c (original)
+++ team/russell/jack/apps/app_jack.c Thu Dec 20 18:45:18 2007
@@ -223,7 +223,7 @@
 	res = jack_ringbuffer_write(jack_data->input_rb, (const char *) s_buf, sizeof(s_buf));
 	if (res != sizeof(s_buf)) {
 		ast_log(LOG_WARNING, "Tried to write %d bytes to the ringbuffer, but only wrote %d\n",
-			sizeof(s_buf), res);
+			(int) sizeof(s_buf), (int) res);
 	}
 }
 
@@ -244,7 +244,7 @@
 
 	if (len != res) {
 		ast_log(LOG_WARNING, "Wanted %d bytes to send to the output port, "
-			"but only got %d\n", len, res);
+			"but only got %d\n", (int) len, (int) res);
 	}
 }
 
@@ -439,7 +439,7 @@
 	res = jack_ringbuffer_write(jack_data->output_rb, (const char *) f_buf, f_buf_used * sizeof(float));
 	if (res != (f_buf_used * sizeof(float))) {
 		ast_log(LOG_WARNING, "Tried to write %d bytes to the ringbuffer, but only wrote %d\n",
-			f_buf_used * sizeof(float), res);
+			(int) (f_buf_used * sizeof(float)), (int) res);
 	}
 
 	return 0;




More information about the asterisk-commits mailing list