diff options
Diffstat (limited to 'community/portmidi/21-hardentests.patch')
-rw-r--r-- | community/portmidi/21-hardentests.patch | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/community/portmidi/21-hardentests.patch b/community/portmidi/21-hardentests.patch deleted file mode 100644 index 9097003fd81..00000000000 --- a/community/portmidi/21-hardentests.patch +++ /dev/null @@ -1,93 +0,0 @@ -diff --git a/pm_test/latency.c b/pm_test/latency.c -old mode 100755 -new mode 100644 -index bfcdc0c..87f6a5e ---- a/pm_test/latency.c -+++ b/pm_test/latency.c -@@ -280,7 +280,7 @@ int get_number(char *prompt) - { - char line[STRING_MAX]; - int n = 0, i; -- printf(prompt); -+ printf("%s\n", prompt); - while (n != 1) { - n = scanf("%d", &i); - fgets(line, STRING_MAX, stdin); -diff --git a/pm_test/mm.c b/pm_test/mm.c -old mode 100755 -new mode 100644 -index 0f2a52e..3f04a30 ---- a/pm_test/mm.c -+++ b/pm_test/mm.c -@@ -119,7 +119,7 @@ int get_number(char *prompt) - { - char line[STRING_MAX]; - int n = 0, i; -- printf(prompt); -+ printf("%s", prompt); - while (n != 1) { - n = scanf("%d", &i); - fgets(line, STRING_MAX, stdin); -@@ -136,7 +136,7 @@ void receive_poll(PtTimestamp timestamp, void *userData) - if (!active) return; - while ((count = Pm_Read(midi_in, &event, 1))) { - if (count == 1) output(event.message); -- else printf(Pm_GetErrorText(count)); -+ else printf("%s", Pm_GetErrorText(count)); - } - } - -@@ -168,7 +168,7 @@ int main(int argc, char **argv) - inp = get_number("Type input device number: "); - err = Pm_OpenInput(&midi_in, inp, NULL, 512, NULL, NULL); - if (err) { -- printf(Pm_GetErrorText(err)); -+ printf("%s", Pm_GetErrorText(err)); - Pt_Stop(); - mmexit(1); - } -@@ -484,7 +484,7 @@ private int put_pitch(int p) - "gs", "a", "bf", "b" }; - /* note octave correction below */ - sprintf(result, "%s%d", ptos[p % 12], (p / 12) - 1); -- printf(result); -+ printf("%s\n", result); - return strlen(result); - } - -diff --git a/pm_test/midiclock.c b/pm_test/midiclock.c -index 60fcf7a..def511a 100644 ---- a/pm_test/midiclock.c -+++ b/pm_test/midiclock.c -@@ -167,7 +167,7 @@ int get_number(char *prompt) - { - char line[STRING_MAX]; - int n = 0, i; -- printf(prompt); -+ printf("%s", prompt); - while (n != 1) { - n = scanf("%d", &i); - fgets(line, STRING_MAX, stdin); -@@ -256,7 +256,7 @@ int main(int argc, char **argv) - err = Pm_OpenOutput(&midi, outp, DRIVER_INFO, OUTPUT_BUFFER_SIZE, - TIME_PROC, TIME_INFO, LATENCY); - if (err) { -- printf(Pm_GetErrorText(err)); -+ printf("%s", Pm_GetErrorText(err)); - goto error_exit_no_device; - } - active = true; -diff --git a/pm_test/sysex.c b/pm_test/sysex.c -index 7bbcf0e..812d979 100755 ---- a/pm_test/sysex.c -+++ b/pm_test/sysex.c -@@ -39,7 +39,7 @@ int get_number(char *prompt) - { - char line[STRING_MAX]; - int n = 0, i; -- printf(prompt); -+ printf("%s", prompt); - while (n != 1) { - n = scanf("%d", &i); - fgets(line, STRING_MAX, stdin); - |