mptutil: emit a warning on big-endian architectures

It is known to be broken.

PR:		162513
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
emaste 2019-07-22 17:25:35 +00:00
parent 494784f669
commit 31f38331ec

View File

@ -114,6 +114,10 @@ main(int ac, char **av)
if (ac == 0)
usage();
#if BYTE_ORDER == BIG_ENDIAN
warnx("mptutil is known to be broken on big-endian architectures");
#endif
SET_FOREACH(cmd, MPT_DATASET(top)) {
if (strcmp((*cmd)->name, av[0]) == 0) {
if ((*cmd)->handler(ac, av))