freebsd-dev/usr.sbin/mfiutil
Dimitry Andric 3ac0e4769e Avoid taking the address of a packed struct member in mfiutil
Fix a clang 4.0.0 warning about taking the address of a packed member of
struct mfi_evt in mfiutil:

    usr.sbin/mfiutil/mfi_evt.c:583:30: error: taking address of packed
    member 'members' of class or structure 'mfi_evt' may result in an
    unaligned pointer value [-Werror,-Waddress-of-packed-member]
                            if (parse_locale(optarg, &filter.members.locale) < 0) {
                                                      ^~~~~~~~~~~~~~~~~~~~~

Use a local variable instead, and copy that into the struct.

Reviewed by:	jhb
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D9069
2017-01-09 19:39:35 +00:00
..
Makefile Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
mfi_bbu.c
mfi_cmd.c
mfi_config.c Implement foreign volume handling. Allows admins to view foreign metadata 2013-06-08 02:54:59 +00:00
mfi_drive.c Add support to reconfigure a drive as SYSPD (real JBOD in LSI 2013-08-26 12:05:38 +00:00
mfi_evt.c Avoid taking the address of a packed struct member in mfiutil 2017-01-09 19:39:35 +00:00
mfi_flash.c
mfi_foreign.c mfiutil: increase buffer size to accommodate sprintf string 2015-07-03 01:43:11 +00:00
mfi_patrol.c
mfi_properties.c Style (9) fixes, spaces to tabs. 2014-09-19 23:38:44 +00:00
mfi_show.c Don't claim the adapter is idle if it is clearing a drive. 2014-04-22 15:15:54 +00:00
mfi_volume.c
mfiutil.8 Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
mfiutil.c Noted that the stripe_size argument was not being displayed in the usage 2013-11-12 17:10:56 +00:00
mfiutil.h Implement foreign volume handling. Allows admins to view foreign metadata 2013-06-08 02:54:59 +00:00