* top.c (show_endian): Cast first arg of printf_unfiltered to

correct type of "char *".
This commit is contained in:
Fred Fish
1995-07-20 22:04:37 +00:00
parent 5c54124bab
commit 032f80d8d4
2 changed files with 6 additions and 1 deletions

View File

@@ -3078,7 +3078,7 @@ show_endian (args, from_tty)
(target_byte_order_auto
? "The target endianness is set automatically (currently %s endian)\n"
: "The target is assumed to be %s endian\n");
printf_unfiltered (msg, TARGET_BYTE_ORDER == BIG_ENDIAN ? "big" : "little");
printf_unfiltered ((char *) msg, TARGET_BYTE_ORDER == BIG_ENDIAN ? "big" : "little");
}
#endif /* defined (TARGET_BYTE_ORDER_SELECTABLE) */