diff options
-rw-r--r-- | examples/hosts/test_host.c | 5 | ||||
-rw-r--r-- | slv2/pluginlist.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/examples/hosts/test_host.c b/examples/hosts/test_host.c index 97df831..c1c96ed 100644 --- a/examples/hosts/test_host.c +++ b/examples/hosts/test_host.c @@ -73,7 +73,6 @@ create_port(SLV2Plugin* plugin, create_control_output(port_index); break; case SLV2_AUDIO_RATE_INPUT: - create_audio_input(port_index); break; case SLV2_AUDIO_RATE_OUTPUT: @@ -138,9 +137,9 @@ main() const char* property = "a"; prop = slv2_port_get_property(p, i, property); if (prop) - printf("Port %ld %s = %s\n", i, property, prop->values[0]); + printf("Port %u %s = %s\n", i, property, prop->values[0]); else - printf("No port %ld %s.\n", i, property); + printf("No port %u %s.\n", i, property); free(prop); } printf("\n"); diff --git a/slv2/pluginlist.h b/slv2/pluginlist.h index ac2422b..198ced8 100644 --- a/slv2/pluginlist.h +++ b/slv2/pluginlist.h @@ -146,7 +146,7 @@ slv2_list_get_plugin_by_uri(const SLV2List list, */ const SLV2Plugin* slv2_list_get_plugin_by_index(const SLV2List list, - unsigned long index); + size_t index); /** @} */ |