* attach channels to devices
*/
-#include "common.h"
-#include <string.h>
-#include <stdbool.h>
+#include "cmd_attach.h"
#include "command.h"
#include "z180-serv.h"
if (rc < 0 || (unsigned) rc >= ARRAY_SIZE(rc_messages))
rc = 1;
-#if GCC_BUG_61443 * 0
- printf_P(PSTR("rc=%u FR_"), rc);
- my_puts_P(rc_names[rc]);
- my_puts_P(PSTR("\n"));
+#if GCC_BUG_61443
+ printf_P(PSTR("Attachment of '%s' to dsk%d failed: "), fn, unit);
+ my_puts_P(rc_messages[rc]);
+ my_puts_P(PSTR("!\n"));
#else
printf_P(PSTR("Attachment of '%s' to dsk%d failed: %S!\n"),
fn, unit, rc_messages[rc]);
*
*/
-command_ret_t do_attach(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+command_ret_t do_attach(cmd_tbl_t *cmdtp, uint_fast8_t flag, int argc, char * const argv[])
{
uint8_t unit;
char *filename = NULL;