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:
parent
512efccf6d
commit
30a42307a7
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user