Package: avrp / 1.0beta3-8

20_misc.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- avrp-1.0beta3.orig/avrp.c
+++ avrp-1.0beta3/avrp.c
@@ -129,12 +129,13 @@
 								}
 							}
 						else
-							printf("Missing argument: No serial port specified\n"
 #ifdef __amigaos__
-									 "Use: -s <serial device:serial unit>\n"
+#define AMIG_PRINT	 "Use: -s <serial device:serial unit>\n"
 #else
-									 "Use: -s <serial port>\n"
+#define AMIG_PRINT	 "Use: -s <serial port>\n"
 #endif
+							printf("Missing argument: No serial port specified\n"
+								AMIG_PRINT
 									 "Or set the environment variable: AVRP_SERIALPORT\n");
 						FreePI(PI);
 						}