From c0a10721a22c8bbe7786b438c89ef9d7feac3f69 Mon Sep 17 00:00:00 2001 From: sletz Date: Wed, 8 Nov 2006 15:06:11 +0000 Subject: [PATCH] Compilation on WIN32 git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1281 0c269be4-1314-0410-8aa9-9f06e86f4224 --- example-clients/lsp.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/example-clients/lsp.c b/example-clients/lsp.c index 0403ea84..bf208b64 100644 --- a/example-clients/lsp.c +++ b/example-clients/lsp.c @@ -26,7 +26,7 @@ show_usage (void) fprintf (stderr, "Display options:\n"); fprintf (stderr, " -c, --connections List connections to/from each port\n"); fprintf (stderr, " -l, --latency Display per-port latency in frames at each port\n"); - fprintf (stderr, " -l, --latency Display total latency in frames at each port\n"); + fprintf (stderr, " -L, --latency Display total latency in frames at each port\n"); fprintf (stderr, " -p, --properties Display port properties. Output may include:\n" " input|output, can-monitor, physical, terminal\n\n"); fprintf (stderr, " -t, --type Display port type\n"); @@ -48,7 +48,8 @@ main (int argc, char *argv[]) int show_properties = 0; int show_type = 0; int c; - int option_index; + int option_index; + jack_port_t *port; struct option long_options[] = { { "connections", 0, 0, 'c' }, @@ -121,7 +122,7 @@ main (int argc, char *argv[]) for (i = 0; ports[i]; ++i) { printf ("%s\n", ports[i]); - jack_port_t *port = jack_port_by_name (client, ports[i]); + port = jack_port_by_name (client, ports[i]); if (show_con) { if ((connections = jack_port_get_all_connections (client, jack_port_by_name(client, ports[i]))) != 0) { @@ -133,13 +134,13 @@ main (int argc, char *argv[]) } if (show_port_latency) { if (port) { - printf (" port latency = %" PRIu32 " frames\n", + printf (" port latency = %ld frames\n", jack_port_get_latency (port)); } } if (show_total_latency) { if (port) { - printf (" total latency = %" PRIu32 " frames\n", + printf (" total latency = %ld frames\n", jack_port_get_total_latency (client, port)); } }