]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r305211: MFV r302662: 6447 handful of nvpair cleanups
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 12 Oct 2016 05:44:54 +0000 (05:44 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 12 Oct 2016 05:44:54 +0000 (05:44 +0000)
commit2f25d3f2aa56d4bff6aa6a535b3c355a8edf8d94
treea071d4bf11c587ae761d7694216802c8a5dbc80e
parent2b8f21b4ebe8ed254d255d2b7f17737703650082
MFC r305211: MFV r302662: 6447 handful of nvpair cleanups

illumos/illumos-gate@759e89be359f2af635e4122d147df56bce948773
https://github.com/illumos/illumos-gate/commit/759e89be359f2af635e4122d147df56bc
e948773

https://www.illumos.org/issues/6447
  I got a patch from someone who uses nvpair code outside of illumos. It fixes a
  couple of gcc warnings/bugs for him.
     1. silence uninitialized use warnings
     2. add parentheses around assignment used as truth value
     3. fix printf format specifier (ll is for integers only)
     4. strstr, strspn, strcspn, and strcmp are declared in string.h, not
        strings.h.
     5. avoid scanning integer into boolean variable

Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Steve Dougherty <sdougherty@barracuda.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@307124 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c
sys/cddl/contrib/opensolaris/common/nvpair/opensolaris_nvpair.c