ref: ee9fc21fd6b7e50706fa093b9ccabd6dd56b02db
parent: 9a26795bd108ad33622abdb8431e100477a413f5
author: Fabian Greffrath <[email protected]>
date: Thu Sep 12 05:28:09 EDT 2019
midiproc: fix compiler warnings introduced by the previous bug fix
--- a/midiproc/main.c
+++ b/midiproc/main.c
@@ -393,6 +393,8 @@
//
int main(int argc, char *argv[])
{
+ HANDLE in, out;
+
// Make sure we're not launching this process by itself.
if (argc < 5)
{
@@ -431,13 +433,13 @@
}
// Parse out our handle ids.
- HANDLE in = strtol(argv[3], NULL, 10);
+ in = (HANDLE) strtol(argv[3], NULL, 10);
if (in == 0)
{
return EXIT_FAILURE;
}
- HANDLE out = strtol(argv[4], NULL, 10);
+ out = (HANDLE) strtol(argv[4], NULL, 10);
if (out == 0)
{
return EXIT_FAILURE;
--- a/src/i_midipipe.c
+++ b/src/i_midipipe.c
@@ -472,7 +472,7 @@
// Define the command line. Version, Sample Rate, and handles follow
// the executable name.
M_snprintf(params_buf, sizeof(params_buf), "%d %Iu %Iu",
- snd_samplerate, midi_process_in_reader, midi_process_out_writer);
+ snd_samplerate, (size_t) midi_process_in_reader, (size_t) midi_process_out_writer);
cmdline = M_StringJoin(module, " \"" PACKAGE_STRING "\"", " ", params_buf, NULL);
// Launch the subprocess